diff options
author | José Valim <jose.valim@gmail.com> | 2011-05-22 04:11:29 -0700 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-05-22 04:11:29 -0700 |
commit | a0eee5f3f293fe0bfcda89f69ebfc6da7176349d (patch) | |
tree | 70b08f0d83127e60e8e87def7ef1db3a20dadb86 /activemodel | |
parent | 1ab556fa89a1cac05df0442d3c30c71739129e91 (diff) | |
parent | 93659a3166830659cc315c55b0ae9acd57eca1b9 (diff) | |
download | rails-a0eee5f3f293fe0bfcda89f69ebfc6da7176349d.tar.gz rails-a0eee5f3f293fe0bfcda89f69ebfc6da7176349d.tar.bz2 rails-a0eee5f3f293fe0bfcda89f69ebfc6da7176349d.zip |
Merge pull request #1208 from dasch/patch-1
Remove superfluous whitespace from ActiveModel::SecurePassword
Diffstat (limited to 'activemodel')
-rw-r--r-- | activemodel/lib/active_model/secure_password.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/lib/active_model/secure_password.rb b/activemodel/lib/active_model/secure_password.rb index ee94ad66cf..63380d6ffd 100644 --- a/activemodel/lib/active_model/secure_password.rb +++ b/activemodel/lib/active_model/secure_password.rb @@ -30,7 +30,7 @@ module ActiveModel # User.find_by_name("david").try(:authenticate, "notright") # => nil # User.find_by_name("david").try(:authenticate, "mUc3m00RsqyRe") # => user def has_secure_password - attr_reader :password + attr_reader :password validates_confirmation_of :password validates_presence_of :password_digest |