Module: TranslatableAR::ActiveRecordBase::ClassMethods
- Defined in:
- lib/active_record_base.rb
Instance Attribute Summary collapse
-
#translatable_ar_attributes ⇒ Object
Returns the value of attribute translatable_ar_attributes.
Instance Method Summary collapse
Instance Attribute Details
#translatable_ar_attributes ⇒ Object
Returns the value of attribute translatable_ar_attributes.
7 8 9 |
# File 'lib/active_record_base.rb', line 7 def translatable_ar_attributes @translatable_ar_attributes end |
Instance Method Details
#translates(*attributes) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/active_record_base.rb', line 9 def translates(*attributes) remember_translatable_ar_model attributes.each do |attribute| remember_translatable_ar_attribute(attribute) define_translatable_ar_methods(attribute) end end |