Module: I18n::Backend::Sequel::StoreProcs
- Defined in:
- lib/i18n/backend/sequel/store_procs.rb
Instance Method Summary collapse
Instance Method Details
#value=(v) ⇒ Object
24 25 26 27 28 29 30 31 32 |
# File 'lib/i18n/backend/sequel/store_procs.rb', line 24 def value=(v) case v when Proc write_attribute(:value, v.to_ruby) write_attribute(:is_proc, true) else write_attribute(:value, v) end end |