module Sequel::Plugins::PrimaryKeyLookupCheckValues::DatasetMethods

Public Instance Methods

with_pk(pk) click to toggle source

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

Calls superclass method
    # 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