Created
December 8, 2009 05:23
-
-
Save bfolkens/251422 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/authlogic_openid/acts_as_authentic.rb b/lib/authlogic_openid/acts_as_authentic.rb | |
index 92c9c52..c0be2e7 100644 | |
--- a/lib/authlogic_openid/acts_as_authentic.rb | |
+++ b/lib/authlogic_openid/acts_as_authentic.rb | |
@@ -45,9 +45,9 @@ module AuthlogicOpenid | |
klass.class_eval do | |
validates_uniqueness_of :openid_identifier, :scope => validations_scope, :if => :using_openid? | |
validate :validate_openid | |
- validates_length_of_password_field_options validates_length_of_password_field_options.merge(:if => :validate_password_with_openid?) | |
- validates_confirmation_of_password_field_options validates_confirmation_of_password_field_options.merge(:if => :validate_password_with_openid?) | |
- validates_length_of_password_confirmation_field_options validates_length_of_password_confirmation_field_options.merge(:if => :validate_password_with_openid?) | |
+ validates_length_of_password_field_options validates_length_of_password_field_options.reverse_merge(:if => :validate_password_with_openid?) | |
+ validates_confirmation_of_password_field_options validates_confirmation_of_password_field_options.reverse_merge(:if => :validate_password_with_openid?) | |
+ validates_length_of_password_confirmation_field_options validates_length_of_password_confirmation_field_options.reverse_merge(:if => :validate_password_with_openid?) | |
end | |
end | |
@@ -171,4 +171,4 @@ module AuthlogicOpenid | |
end | |
end | |
end | |
-end | |
\ No newline at end of file | |
+end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment