Class: Locomotive::Translation

Inherits:
Object
  • Object
show all
Includes:
Mongoid::Document
Defined in:
app/models/locomotive/translation.rb

Instance Method Summary collapse

Instance Method Details

#keyObject

validations ##



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

field :key

#orderedObject

scopes ##



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

scope :ordered, order_by(key: :asc)

#siteObject

associations ##



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

belongs_to :site, class_name: 'Locomotive::Site', validate: false, autosave: false