Method: Sequel::Model::DatasetMethods#with_pk!

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

#with_pk!(pk) ⇒ Object

Same as with_pk, but raises NoMatchingRow instead of returning nil if no row matches.



2287
2288
2289
# File 'lib/sequel/model/base.rb', line 2287

def with_pk!(pk)
  with_pk(pk) || raise(NoMatchingRow.new(self))
end