Module: Sequel::Plugins::PrimaryKeyLookupCheckValues::DatasetMethods
- Defined in:
- lib/sequel/plugins/primary_key_lookup_check_values.rb
Instance Method Summary collapse
- 
  
    
      #with_pk(pk)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Skip the primary key lookup if the typecasted and checked primary key value is nil. 
Instance Method Details
#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 |