Module: HstoreTranslations::AccessMethods
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/hstore_translations/access_methods.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
- #read_translated_attribute(name, locale) ⇒ Object
- #write_translated_attribute(name, locale, value) ⇒ Object
Instance Method Details
#read_translated_attribute(name, locale) ⇒ Object
5 6 7 |
# File 'lib/hstore_translations/access_methods.rb', line 5 def read_translated_attribute(name, locale) read_store_attribute("#{name}_translations", locale) end |
#write_translated_attribute(name, locale, value) ⇒ Object
9 10 11 |
# File 'lib/hstore_translations/access_methods.rb', line 9 def write_translated_attribute(name, locale, value) write_store_attribute("#{name}_translations", locale, value) end |