Module: Sequel::Plugins::ForceEncoding::InstanceMethods

Defined in:
lib/sequel/plugins/force_encoding.rb

Instance Method Summary collapse

Instance Method Details

#merge_db_update(row) ⇒ Object

Allow the force encoding plugin to work with the identity_map plugin by typecasting new values.



45
46
47
# File 'lib/sequel/plugins/force_encoding.rb', line 45

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.



50
51
52
# File 'lib/sequel/plugins/force_encoding.rb', line 50

def set_values(row)
  super(force_hash_encoding(row))
end