Method: ActiveData::Model::Attributes::Localized#read_locale
- Defined in:
- lib/active_data/model/attributes/localized.rb
#read_locale(locale) ⇒ Object
23 24 25 26 27 |
# File 'lib/active_data/model/attributes/localized.rb', line 23 def read_locale(locale) read[owner.class.fallbacks(locale).detect do |fallback| read[fallback.to_s] end.to_s] end |