Class: LocalizableDb::LocalizableConfig
- Inherits:
-
Object
- Object
- LocalizableDb::LocalizableConfig
- Defined in:
- lib/localizable_db/localizable_config.rb
Instance Attribute Summary collapse
-
#attributes_integration ⇒ Object
Returns the value of attribute attributes_integration.
-
#default_language ⇒ Object
Returns the value of attribute default_language.
-
#enable_getters ⇒ Object
Returns the value of attribute enable_getters.
-
#enable_i18n_integration ⇒ Object
Returns the value of attribute enable_i18n_integration.
-
#supported_languages ⇒ Object
Returns the value of attribute supported_languages.
Instance Method Summary collapse
-
#initialize ⇒ LocalizableConfig
constructor
A new instance of LocalizableConfig.
Constructor Details
#initialize ⇒ LocalizableConfig
Returns a new instance of LocalizableConfig.
24 25 26 27 28 29 30 |
# File 'lib/localizable_db/localizable_config.rb', line 24 def initialize() @attributes_integration = true @enable_getters = true @enable_i18n_integration = true @supported_languages = [I18n.default_locale] @default_language = I18n.default_locale end |
Instance Attribute Details
#attributes_integration ⇒ Object
Returns the value of attribute attributes_integration.
18 19 20 |
# File 'lib/localizable_db/localizable_config.rb', line 18 def attributes_integration @attributes_integration end |
#default_language ⇒ Object
Returns the value of attribute default_language.
22 23 24 |
# File 'lib/localizable_db/localizable_config.rb', line 22 def default_language @default_language end |
#enable_getters ⇒ Object
Returns the value of attribute enable_getters.
19 20 21 |
# File 'lib/localizable_db/localizable_config.rb', line 19 def enable_getters @enable_getters end |
#enable_i18n_integration ⇒ Object
Returns the value of attribute enable_i18n_integration.
20 21 22 |
# File 'lib/localizable_db/localizable_config.rb', line 20 def enable_i18n_integration @enable_i18n_integration end |
#supported_languages ⇒ Object
Returns the value of attribute supported_languages.
21 22 23 |
# File 'lib/localizable_db/localizable_config.rb', line 21 def supported_languages @supported_languages end |