Module: Sequel::Plugins::ForceEncoding::InstanceMethods
- Defined in:
- lib/sequel/plugins/force_encoding.rb
Instance Method Summary collapse
-
#merge_db_update(row) ⇒ Object
Allow the force encoding plugin to work with the identity_map plugin by typecasting new values.
-
#set_values(row) ⇒ Object
Force the encoding of all string values when setting the instance’s values.
Instance Method Details
#merge_db_update(row) ⇒ Object
Allow the force encoding plugin to work with the identity_map plugin by typecasting new values.
41 42 43 |
# File 'lib/sequel/plugins/force_encoding.rb', line 41 def merge_db_update(row) super(force_hash_encoding(row)) end |
#set_values(row) ⇒ Object
Force the encoding of all string values when setting the instance’s values.
46 47 48 |
# File 'lib/sequel/plugins/force_encoding.rb', line 46 def set_values(row) super(force_hash_encoding(row)) end |