Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Don't conditionalize the validates_confirmation_of :password, since t…

…he conditional is implied
  • Loading branch information...
commit a3c92377506495eb309338ae71b16a7e718235f6 1 parent 8c37063
@mike-burns mike-burns authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/clearance/user.rb
View
2  lib/clearance/user.rb
@@ -54,7 +54,7 @@ def self.included(model)
validates_format_of :email, :with => %r{.+@.+\..+}, :allow_blank => true
validates_presence_of :password, :unless => :password_optional?
- validates_confirmation_of :password, :unless => :password_optional?
+ validates_confirmation_of :password
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.