Module: Sequel::Plugins::ForceEncoding::ClassMethods
- Defined in:
- lib/sequel/plugins/force_encoding.rb
Instance Attribute Summary collapse
-
#forced_encoding ⇒ Object
The string encoding to force on a column string values.
Instance Method Summary collapse
Instance Attribute Details
#forced_encoding ⇒ Object
The string encoding to force on a column string values
34 35 36 |
# File 'lib/sequel/plugins/force_encoding.rb', line 34 def forced_encoding @forced_encoding end |
Instance Method Details
#call(values) ⇒ Object
38 39 40 41 42 |
# File 'lib/sequel/plugins/force_encoding.rb', line 38 def call(values) o = super o.send(:force_hash_encoding, o.values) o end |