Module: HasManyTranslations::ClassMethods
- Defined in:
- lib/has_many_translations.rb
Instance Method Summary collapse
Instance Method Details
#translated(options = {}, &block) ⇒ Object
19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/has_many_translations.rb', line 19 def translated( = {}, &block) return if translated? include Options include TranslationJobs include Creation include Control include Translations () has_many :translations, .merge({:order => "translations.updated_at DESC"}), &block end |