Actions
Bug #12888
closedexception handling during api call causes does not handle 'class' errors
Difficulty:
trivial
Triaged:
Yes
Pull request:
Description
When testing a pr i noticed that if something like scoped search throws an error, you get anothe rexception.
To reproduce:
In app/models/product.rb, add:
scoped_search :on => :foo
and then search for products with "foo = bar":
http://devbox:3000/katello/api/v2/products?organization_id=1&search=foo=bar
Result:
undefined method `errors' for #<Class:0x00000007244490>
Actions