Skip to content

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

Open
tom-pang wants to merge 1 commit into
hgmnz:masterfrom
tom-pang:allow_excluding_the_property_on_a_per_error_basis
Open

allow not including the property to be configured on a per error basis#3
tom-pang wants to merge 1 commit into
hgmnz:masterfrom
tom-pang:allow_excluding_the_property_on_a_per_error_basis

Conversation

@tom-pang

@tom-pang tom-pang commented Feb 6, 2017

Copy link
Copy Markdown
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