module LostInTranslations::Base::ClassMethods

Attributes

force_locale_field[W]
translation_data_field[W]

Public Instance Methods

force_locale_field() click to toggle source
# File lib/lost_in_translations/base.rb, line 37
def force_locale_field
  @force_locale_field ||
    LostInTranslations.config.force_locale_field
end
translate(*fields) click to toggle source
# File lib/lost_in_translations/base.rb, line 46
def translate(*fields)
  translation_fields.concat(fields)

  define_translation_methods
end
translation_data_field() click to toggle source
# File lib/lost_in_translations/base.rb, line 32
def translation_data_field
  @translation_data_field ||
    LostInTranslations.config.translation_data_field
end
translation_fields() click to toggle source
# File lib/lost_in_translations/base.rb, line 42
def translation_fields
  @translation_fields ||= []
end