Exception: Her::RecordNotFound
- Defined in:
- lib/her/exceptions/record_not_found.rb
Class Method Summary collapse
Class Method Details
.one(model, id) ⇒ Object
4 5 6 |
# File 'lib/her/exceptions/record_not_found.rb', line 4 def one(model, id) new("Couldn't find #{model.name} with id=#{id}") end |
.some(model, ids, found, looking_for) ⇒ Object
8 9 10 |
# File 'lib/her/exceptions/record_not_found.rb', line 8 def some(model, ids, found, looking_for) super("Couldn't find all #{model.name}s with IDs (#{ids.join(', ')}) (found #{found} results, but was looking for #{looking_for})") end |