Class: I18n::Backend::ActiveRecord::Configuration
- Inherits:
-
Object
- Object
- I18n::Backend::ActiveRecord::Configuration
- Defined in:
- lib/i18n/backend/active_record/configuration.rb
Instance Attribute Summary collapse
-
#cache_translations ⇒ Object
Returns the value of attribute cache_translations.
-
#cleanup_with_destroy ⇒ Object
Returns the value of attribute cleanup_with_destroy.
-
#translation_model ⇒ Object
Returns the value of attribute translation_model.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
9 10 11 12 13 |
# File 'lib/i18n/backend/active_record/configuration.rb', line 9 def initialize @cleanup_with_destroy = false @cache_translations = false @translation_model = I18n::Backend::ActiveRecord::Translation end |
Instance Attribute Details
#cache_translations ⇒ Object
Returns the value of attribute cache_translations.
7 8 9 |
# File 'lib/i18n/backend/active_record/configuration.rb', line 7 def cache_translations @cache_translations end |
#cleanup_with_destroy ⇒ Object
Returns the value of attribute cleanup_with_destroy.
7 8 9 |
# File 'lib/i18n/backend/active_record/configuration.rb', line 7 def cleanup_with_destroy @cleanup_with_destroy end |
#translation_model ⇒ Object
Returns the value of attribute translation_model.
7 8 9 |
# File 'lib/i18n/backend/active_record/configuration.rb', line 7 def translation_model @translation_model end |