Blogging::Article
Inherits Marten::DB::Model / Marten::Template::Object::Auto / Marten::Template::Object / Marten::Template::CanDefineTemplateAttributes / Marten::DB::Model::Callbacks / Marten::Core::Validation::Callbacks / Marten::Core::Validation / Marten::DB::Model::Validation / Marten::DB::Model::Querying / Marten::DB::Model::Persistence / Marten::DB::Model::Comparison / Marten::DB::Model::Table / Marten::DB::Model::Connection / Marten::Apps::Association / Marten::DB::Model::AppConfig / Marten::DB::Model::Inheritance / Reference / Object
Constants
FIELDS_ = {"id" => {type: "big_int", kwargs: {primary_key: true, auto: true}}, "slug" => {type: "slug", kwargs: ::NamedTuple.new}, "title" => {type: "string", kwargs: {max_size: 255}}, "description" => {type: "text", kwargs: ::NamedTuple.new}, "body" => {type: "text", kwargs: ::NamedTuple.new}, "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 methods
article_tags
author
author!
author?
author_id
author_id!
author_id?
body
body!
body=(body : String | Nil | Nil)
body?
comments
created_at
created_at!
created_at=(created_at : Time | Nil | Nil)
created_at?
description
description!
description=(description : String | Nil | Nil)
description?
favorited_by
id
id!
id=(id : Int32 | Int64 | Nil | Nil)
id?
profile_favorite_articles
rendered_body
Sourceslug
slug!
slug=(slug : String | Nil | Nil)
slug?
tags
title
title!
title=(title : String | Nil | Nil)
title?
updated_at
updated_at!
updated_at=(updated_at : Time | Nil | Nil)
updated_at?