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(options = {}, &block)
  return if translated?
  
  include Options
  include TranslationJobs
  include Creation
  include Control
  include Translations
  prepare_translated_options(options)
  has_many :translations, options.merge({:order => "translations.updated_at DESC"}), &block
  
end