Open yogeshjain999 opened 8 months ago
ActiveModel has added support to pick errors for specific field using full_messages_for method.
full_messages_for
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.
errors
undefined method `full_messages_for' for Reform::Contract::Result::Errors
This PR adds support to mimic the behaviour.
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.This PR adds support to mimic the behaviour.