Class: I18nModelTranslator::Configuration
- Inherits:
-
Object
- Object
- I18nModelTranslator::Configuration
- Defined in:
- lib/i18n_model_translator.rb
Instance Attribute Summary collapse
-
#locales ⇒ Object
Returns the value of attribute locales.
-
#model_locale_path ⇒ Object
Returns the value of attribute model_locale_path.
-
#translation_source_locale ⇒ Object
Returns the value of attribute translation_source_locale.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
17 18 19 20 21 |
# File 'lib/i18n_model_translator.rb', line 17 def initialize @model_locale_path = 'config/locales/models' @translation_source_locale = I18n.default_locale @locales = I18n.available_locales rescue [] end |
Instance Attribute Details
#locales ⇒ Object
Returns the value of attribute locales.
15 16 17 |
# File 'lib/i18n_model_translator.rb', line 15 def locales @locales end |
#model_locale_path ⇒ Object
Returns the value of attribute model_locale_path.
15 16 17 |
# File 'lib/i18n_model_translator.rb', line 15 def model_locale_path @model_locale_path end |
#translation_source_locale ⇒ Object
Returns the value of attribute translation_source_locale.
15 16 17 |
# File 'lib/i18n_model_translator.rb', line 15 def translation_source_locale @translation_source_locale end |