Method: Sequel::Plugins::PrimaryKeyLookupCheckValues::DatasetMethods#with_pk
- Defined in:
- lib/sequel/plugins/primary_key_lookup_check_values.rb
#with_pk(pk) ⇒ Object
Skip the primary key lookup if the typecasted and checked primary key value is nil.
146 147 148 149 150 |
# File 'lib/sequel/plugins/primary_key_lookup_check_values.rb', line 146 def with_pk(pk) unless nil == (pk = model.send(:_check_pk_lookup_value, pk)) super end end |