module Sequel::Plugins::ForceEncoding::InstanceMethods

  1. lib/sequel/plugins/force_encoding.rb
Parent: ForceEncoding

Methods

Public Instance

  1. merge_db_update
  2. set_values

Public Instance methods

merge_db_update (row)

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

[show source]
# File lib/sequel/plugins/force_encoding.rb, line 41
def merge_db_update(row)
  super(force_hash_encoding(row))
end
set_values (row)

Force the encoding of all string values when setting the instance's values.

[show source]
# File lib/sequel/plugins/force_encoding.rb, line 46
def set_values(row)
  super(force_hash_encoding(row))
end