reform icon indicating copy to clipboard operation
reform copied to clipboard

Add full_messages_for support

Open yogeshjain999 opened this issue 1 year ago • 0 comments

ActiveModel has added support to pick errors for specific field using full_messages_for method.

https://api.rubyonrails.org/classes/ActiveModel/Errors.html#method-i-full_messages_for

SimpleForm seems to be using it to generate errors, but gives exception for reform's errors object.

undefined method `full_messages_for' for Reform::Contract::Result::Errors

This PR adds support to mimic the behaviour.

yogeshjain999 avatar Dec 24 '23 09:12 yogeshjain999