Class: Translatable::Configuration
- Inherits:
-
Object
- Object
- Translatable::Configuration
- Defined in:
- lib/translatable/configuration.rb
Instance Attribute Summary collapse
-
#default_column_name ⇒ Object
Returns the value of attribute default_column_name.
-
#default_locales ⇒ Object
Returns the value of attribute default_locales.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 |
# File 'lib/translatable/configuration.rb', line 5 def initialize @default_column_name = :translations @default_locales = -> { I18n.available_locales } end |
Instance Attribute Details
#default_column_name ⇒ Object
Returns the value of attribute default_column_name.
3 4 5 |
# File 'lib/translatable/configuration.rb', line 3 def default_column_name @default_column_name end |
#default_locales ⇒ Object
Returns the value of attribute default_locales.
3 4 5 |
# File 'lib/translatable/configuration.rb', line 3 def default_locales @default_locales end |