class Blogging::Article

Defined in:

apps/blogging/models/article.cr

Constant 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

Instance Method Detail

def article_tags #

def author : Profiles::Profile | Nil #

def author! : Profiles::Profile #

def author=(related_object : Profiles::Profile | Nil) #

def author? #

def author_id : Marten::DB::Field::ReferenceDBTypes | Nil #

def author_id! #

def author_id=(related_id : Marten::DB::Field::ReferenceDBTypes | Nil) #

def author_id? #

def body : String | Nil | Nil #

def body! #

def body=(body : String | Nil | Nil) #

def body? #

def comments #

def created_at : Time | Nil | Nil #

def created_at! #

def created_at=(created_at : Time | Nil | Nil) #

def created_at? #

def description : String | Nil | Nil #

def description! #

def description=(description : String | Nil | Nil) #

def description? #

def favorited_by #

def id : Int32 | Int64 | Nil | Nil #

def id! #

def id=(id : Int32 | Int64 | Nil | Nil) #

def id? #

def profile_favorite_articles #

def rendered_body #

[View source]
def slug : String | Nil | Nil #

def slug! #

def slug=(slug : String | Nil | Nil) #

def slug? #

def tags #

def title : String | Nil | Nil #

def title! #

def title=(title : String | Nil | Nil) #

def title? #

def updated_at : Time | Nil | Nil #

def updated_at! #

def updated_at=(updated_at : Time | Nil | Nil) #

def updated_at? #