Module: Sequel::Plugins::RailsExtensions::ClassMethods

Defined in:
lib/sequel/plugins/rails_extensions.rb

Instance Method Summary collapse

Instance Method Details

#find!(args) ⇒ Object

Raises:



26
27
28
29
30
# File 'lib/sequel/plugins/rails_extensions.rb', line 26

def find!(args)
  m = self[args]
  raise ModelNotFound, "Couldn't find #{self} matching #{args}." unless m
  m
end