Class: Elabs::Article
- Inherits:
-
ApplicationContentRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- ApplicationContentRecord
- Elabs::Article
- Defined in:
- app/models/elabs/article.rb
Constant Summary collapse
- SLUGGABLE_FIELD =
:title
- ADDITIONAL_HABTM_COUNTER_CACHES =
[ %w[projects articles] ].freeze
Constants inherited from ApplicationContentRecord
Elabs::ApplicationContentRecord::SLUG_FIELD
Instance Attribute Summary
Attributes inherited from ApplicationRecord
Instance Method Summary collapse
Methods included from Concerns::Sluggable
Methods included from Concerns::Taggable
Methods included from Concerns::ActableEntity
#minor_update=, #minor_update?
Methods included from Concerns::ContentEntity
#draft?, #locked?, #not_publicly_visible?, #publicly_visible?, #published?, #unlocked?
Instance Method Details
#long_text_to_display ⇒ Object
35 36 37 |
# File 'app/models/elabs/article.rb', line 35 def long_text_to_display content end |
#short_text_to_display ⇒ Object
31 32 33 |
# File 'app/models/elabs/article.rb', line 31 def short_text_to_display excerpt end |
#title_to_display ⇒ Object
27 28 29 |
# File 'app/models/elabs/article.rb', line 27 def title_to_display title end |