lulalala opened this issue 7 years ago · 1 comments
Sometimes it is desirable to access a specific error details
foo.errors.details[:amount].find { |error| error[:error] == :too_small }
It would be better to have a method to allow for this.
Fixed by Errors#where http://www.rubydoc.info/github/lulalala/adequate_errors/AdequateErrors/Errors#where-instance_method
Errors#where