Class: ActsAsLocalizable::AR::Config
- Inherits:
-
Object
- Object
- ActsAsLocalizable::AR::Config
- Defined in:
- lib/acts_as_localizable.rb
Instance Attribute Summary collapse
-
#default_locale ⇒ Object
readonly
Returns the value of attribute default_locale.
-
#model_id ⇒ Object
readonly
Returns the value of attribute model_id.
Instance Method Summary collapse
-
#initialize(model_id, default_locale) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(model_id, default_locale) ⇒ Config
Returns a new instance of Config.
11 12 13 14 |
# File 'lib/acts_as_localizable.rb', line 11 def initialize(model_id,default_locale) @model_id = model_id @default_locale = default_locale.to_s.downcase end |
Instance Attribute Details
#default_locale ⇒ Object (readonly)
Returns the value of attribute default_locale.
9 10 11 |
# File 'lib/acts_as_localizable.rb', line 9 def default_locale @default_locale end |
#model_id ⇒ Object (readonly)
Returns the value of attribute model_id.
10 11 12 |
# File 'lib/acts_as_localizable.rb', line 10 def model_id @model_id end |