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

Make NoBrainer validation play well with has_secure_password #129

Closed
wants to merge 1 commit into from

Conversation

jdrago999
Copy link
Contributor

No description provided.

@nviennot nviennot closed this in 039e119 Feb 23, 2015
@nviennot
Copy link
Collaborator

I changed the code a bit:

  1. I didn't like the blind inline rescue as it can hide some real code issues
  2. The default return value should be true and not false so we always validate attributes for which we don't have a corresponding changed? method.
  3. I added a test

Thanks for the PR :) :)

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