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

validate virtual attributes #134

Merged
merged 1 commit into from
Nov 20, 2017
Merged

validate virtual attributes #134

merged 1 commit into from
Nov 20, 2017

Conversation

fridgerator
Copy link
Member

Previously virtual attributes weren't being validated, this adds validation to virtual attributes.

For example validating the length of a password attribute that doesn't get stored in the database:

field :password, String, virtual: true
field :password_confirmation, String, virtual: true

validate_length :password, min: 8

@fridgerator fridgerator merged commit 63df015 into master Nov 20, 2017
@fridgerator fridgerator deleted the validate_virtual_fields branch November 20, 2017 16:41
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.

1 participant