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
# File 'lib/has_many_translations.rb', line 19

def translated(options = {}, &block)
  return if translated?
  
  include Options
  include TranslationJobs
  include Creation
  include Translations
  prepare_translated_options(options)
  has_many :translations, options, &block
  
end