8000 allow not including the property to be configured on a per error basis by tcrayford · Pull Request #3 · hgmnz/valcro · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

allow not including the property to be configured on a per error basis #3

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

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

Conversation

tcrayford
Copy link
Collaborator

currently valcro lets you specify a property which you don't want output in to_s by specifying the property as :base.

This PR lets you specify it when doing errors.add:

errors.add(:walrus, "walruses cannot eat cheese!", include_property_in_to_s: false)

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.

2 participants
0