class Blogging::Article
- Blogging::Article
- Marten::DB::Model
- Reference
- Object
Defined in:
apps/blogging/models/article.crConstant Summary
-
FIELDS_ =
{"id" => {type: "big_int", kwargs: {primary_key: true, auto: true}}, "slug" => {type: "slug", kwargs: {}}, "title" => {type: "string", kwargs: {max_size: 255}}, "description" => {type: "text", kwargs: {}}, "body" => {type: "text", kwargs: {}}, "author" => {type: "many_to_one", kwargs: {to: Profiles::Profile, related: :articles}}, "tags" => {type: "many_to_many", kwargs: {to: Blogging::Tag}}, "created_at" => {type: "date_time", kwargs: {auto_now_add: true}}, "updated_at" => {type: "date_time", kwargs: {auto_now: true}}} of Nil => Nil
Instance Method Summary
- #article_tags
- #author : Profiles::Profile | Nil
- #author! : Profiles::Profile
- #author=(related_object : Profiles::Profile | Nil)
- #author?
- #author_id : Marten::DB::Field::ReferenceDBTypes | Nil
- #author_id!
- #author_id=(related_id : Marten::DB::Field::ReferenceDBTypes | Nil)
- #author_id?
- #body : String | Nil | Nil
- #body!
- #body=(body : String | Nil | Nil)
- #body?
- #comments
- #created_at : Time | Nil | Nil
- #created_at!
- #created_at=(created_at : Time | Nil | Nil)
- #created_at?
- #description : String | Nil | Nil
- #description!
- #description=(description : String | Nil | Nil)
- #description?
- #favorited_by
- #id : Int32 | Int64 | Nil | Nil
- #id!
- #id=(id : Int32 | Int64 | Nil | Nil)
- #id?
- #profile_favorite_articles
- #rendered_body
- #slug : String | Nil | Nil
- #slug!
- #slug=(slug : String | Nil | Nil)
- #slug?
- #tags
- #title : String | Nil | Nil
- #title!
- #title=(title : String | Nil | Nil)
- #title?
- #updated_at : Time | Nil | Nil
- #updated_at!
- #updated_at=(updated_at : Time | Nil | Nil)
- #updated_at?