Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add full_messages_for support #539

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

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