Class: Locomotive::Snippet
- Inherits:
-
Object
- Object
- Locomotive::Snippet
- Defined in:
- app/models/locomotive/snippet.rb
Instance Method Summary collapse
-
#by_id_or_slug ⇒ Object
named scopes ##.
-
#name ⇒ Object
behaviours ##.
-
#touch_site_attribute ⇒ Object
methods ##.
Instance Method Details
#by_id_or_slug ⇒ Object
named scopes ##
18 |
# File 'app/models/locomotive/snippet.rb', line 18 scope :by_id_or_slug, ->(id_or_slug) { all.or({ _id: id_or_slug }, { slug: id_or_slug }) } |
#name ⇒ Object
behaviours ##
9 |
# File 'app/models/locomotive/snippet.rb', line 9 field :name |
#touch_site_attribute ⇒ Object
methods ##
28 29 30 |
# File 'app/models/locomotive/snippet.rb', line 28 def touch_site_attribute :template_version end |