Method: Mobility::Backends::Sequel::Column#read
- Defined in:
- lib/mobility/backends/sequel/column.rb
#read(locale, _options = nil) ⇒ Object
Gets the translated value for provided locale from configured backend.
18 19 20 21 |
# File 'lib/mobility/backends/sequel/column.rb', line 18 def read(locale, = nil) column = column(locale) model[column] if model.columns.include?(column) end |