Class: Locomotive::Translation

Inherits:
Object
  • Object
show all
Includes:
Concerns::Shared::SiteScope, Concerns::Shared::Userstamp, Mongoid::Document
Defined in:
app/models/locomotive/translation.rb

Instance Method Summary collapse

Instance Method Details

#keyObject

validations ##


9
# File 'app/models/locomotive/translation.rb', line 9

field :key

#orderedObject

named scopes ##


18
# File 'app/models/locomotive/translation.rb', line 18

scope :ordered,       -> { order_by(key: :asc) }

#touch_site_attributeObject

methods ##


33
34
35
# File 'app/models/locomotive/translation.rb', line 33

def touch_site_attribute
  :content_version
end