lib/authlogic/session/password.rb in authlogic-4.1.1 vs lib/authlogic/session/password.rb in authlogic-4.2.0

- old
+ new

@@ -224,15 +224,17 @@ # The password should not be accessible publicly. This way forms # using form_for don't fill the password with the attempted # password. To prevent this we just create this method that is # private. - self.class.class_eval <<-EOS, __FILE__, __LINE__ + 1 + self.class.class_eval( + <<-EOS, __FILE__, __LINE__ + 1 private def protected_#{password_field} @#{password_field} end EOS + ) end # In keeping with the metaphor of ActiveRecord, verification of the # password is referred to as a "validation". def validate_by_password