Skip to content

Add full_messages_for support#539

Open
yogeshjain999 wants to merge 1 commit intotrailblazer:masterfrom
yogeshjain999:full_messages_for
Open

Add full_messages_for support#539
yogeshjain999 wants to merge 1 commit intotrailblazer:masterfrom
yogeshjain999:full_messages_for

Conversation

@yogeshjain999
Copy link
Member

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.

@seuros seuros self-requested a review December 25, 2023 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants