Class: ActsAsLocalizable::AR::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/acts_as_localizable.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_localeObject (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_idObject (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