Class: LocalizableModel::AnyLocalizer

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(record) ⇒ AnyLocalizer

Returns a new instance of AnyLocalizer.



7
8
9
10
# File 'lib/localizable_model/any_localizer.rb', line 7

def initialize(record)
  @record = record
  define_localization_methods
end

Instance Attribute Details

#recordObject (readonly)

Returns the value of attribute record.



5
6
7
# File 'lib/localizable_model/any_localizer.rb', line 5

def record
  @record
end