Class: Postnhost::ArticleVariant
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Postnhost::ArticleVariant
- Includes:
- ExcerptOptimizable
- Defined in:
- app/models/postnhost/article_variant.rb
Constant Summary
Constants included from ExcerptOptimizable
ExcerptOptimizable::CUSTOM_EXCERPT_MAX_CHARS
Instance Method Summary collapse
Instance Method Details
#published? ⇒ Boolean
20 21 22 |
# File 'app/models/postnhost/article_variant.rb', line 20 def published? article_variant_snapshot.present? end |
#unpublished_changes? ⇒ Boolean
24 25 26 |
# File 'app/models/postnhost/article_variant.rb', line 24 def unpublished_changes? article_variant_snapshot&.differs_from?(self) || false end |