module Sequel::Plugins::PrimaryKeyLookupCheckValues::DatasetMethods

  1. lib/sequel/plugins/primary_key_lookup_check_values.rb

Methods

Public Instance

  1. with_pk

Public Instance methods

with_pk(pk)

Skip the primary key lookup if the typecasted and checked primary key value is nil.

[show source]
    # File lib/sequel/plugins/primary_key_lookup_check_values.rb
146 def with_pk(pk)
147   unless nil == (pk = model.send(:_check_pk_lookup_value, pk))
148     super
149   end
150 end