Skip to content
Browse files

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

…he conditional is implied
  • Loading branch information...
1 parent 8c37063 commit a3c92377506495eb309338ae71b16a7e718235f6 @mike-burns mike-burns committed Apr 16, 2010
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

0 comments on commit a3c9237

Please sign in to comment.
Something went wrong with that request. Please try again.