lulalala/adequate_errors

Accessor for specific error

lulalala opened this issue · 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.