From 52188c77f12ebe3c54c2d7ff88982a49aaac260b Mon Sep 17 00:00:00 2001 From: Oscar Del Ben Date: Tue, 24 Apr 2012 19:08:57 +0200 Subject: Correct documentation of SecurePassword --- activemodel/lib/active_model/secure_password.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'activemodel') diff --git a/activemodel/lib/active_model/secure_password.rb b/activemodel/lib/active_model/secure_password.rb index e7a57cf691..cc0dfb1860 100644 --- a/activemodel/lib/active_model/secure_password.rb +++ b/activemodel/lib/active_model/secure_password.rb @@ -62,7 +62,8 @@ module ActiveModel end end - # Encrypts the password into the password_digest attribute. + # Encrypts the password into the password_digest attribute, only if the + # new password is not blank. def password=(unencrypted_password) @password = unencrypted_password unless unencrypted_password.blank? -- cgit v1.2.3