Method: Sequel::Model::InstanceMethods#pk_hash

Defined in:
lib/sequel/model/base.rb

#pk_hashObject

Returns a hash identifying the model instance. It should be true that:

Model[model_instance.pk_hash] === model_instance


622
623
624
# File 'lib/sequel/model/base.rb', line 622

def pk_hash
  model.primary_key_hash(pk)
end