Module: Mobility::Plugins::Sequel::ColumnFallback::BackendInstanceMethods
- Defined in:
- lib/mobility/plugins/sequel/column_fallback.rb
Instance Method Summary collapse
Instance Method Details
#read(locale) ⇒ Object
35 36 37 38 39 40 41 |
# File 'lib/mobility/plugins/sequel/column_fallback.rb', line 35 def read(locale, **) if ColumnFallback.use_column_fallback?(, locale) model[attribute.to_sym] else super end end |
#write(locale, value) ⇒ Object
43 44 45 46 47 48 49 |
# File 'lib/mobility/plugins/sequel/column_fallback.rb', line 43 def write(locale, value, **) if ColumnFallback.use_column_fallback?(, locale) model[attribute.to_sym] = value else super end end |