Class: Dhatu::MetaTag
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Dhatu::MetaTag
- Includes:
- Publishable
- Defined in:
- app/models/dhatu/meta_tag.rb
Constant Summary collapse
- META_TYPES =
Constants
["Default", "Open Graph", "Twitter", "Facebook", "Other"]
Instance Method Summary collapse
- #can_be_deleted? ⇒ Boolean
-
#can_be_edited? ⇒ Boolean
Permission Methods ——————.
-
#display_name ⇒ Object
Generic Methods —————.
Instance Method Details
#can_be_deleted? ⇒ Boolean
44 45 46 |
# File 'app/models/dhatu/meta_tag.rb', line 44 def can_be_deleted? status?(:removed) end |
#can_be_edited? ⇒ Boolean
Permission Methods
40 41 42 |
# File 'app/models/dhatu/meta_tag.rb', line 40 def can_be_edited? status?(:published) or status?(:unpublished) end |
#display_name ⇒ Object
Generic Methods
33 34 35 |
# File 'app/models/dhatu/meta_tag.rb', line 33 def display_name "#{self.} - #{self.}" end |