Class: Array

Inherits:
Object
  • Object
show all
Defined in:
lib/simple_find.rb

Instance Method Summary collapse

Instance Method Details

#find!Object



5
6
7
# File 'lib/simple_find.rb', line 5

def find!
  self.find(->{raise ActiveRecord::RecordNotFound, "Record not found"}){ |obj| yield obj }
end