diff options
author | Roberto Miranda <rjmaltamar@gmail.com> | 2015-01-10 16:56:21 -0500 |
---|---|---|
committer | Roberto Miranda <rjmaltamar@gmail.com> | 2015-01-10 16:56:21 -0500 |
commit | 0f931f2ff037a4e623473decad1482721af0cbc5 (patch) | |
tree | 0d9fd3b4e5d723f14072922f7e9bf5eccd740b94 /activerecord | |
parent | 134abedf198423e6b13d5582719bd9daabbbfa5a (diff) | |
download | rails-0f931f2ff037a4e623473decad1482721af0cbc5.tar.gz rails-0f931f2ff037a4e623473decad1482721af0cbc5.tar.bz2 rails-0f931f2ff037a4e623473decad1482721af0cbc5.zip |
Fix Typo SecureToken [ci skip]
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/secure_token.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/secure_token.rb b/activerecord/lib/active_record/secure_token.rb index b1a13fe673..be3c3bc847 100644 --- a/activerecord/lib/active_record/secure_token.rb +++ b/activerecord/lib/active_record/secure_token.rb @@ -24,7 +24,7 @@ module ActiveRecord # validates_presence_of can. You're encouraged to add a unique index in the database to deal with # this even more unlikely scenario. def has_secure_token(attribute = :token) - # Load securerandom only when has_secure_key is used. + # Load securerandom only when has_secure_token is used. require 'active_support/core_ext/securerandom' define_method("regenerate_#{attribute}") { update! attribute => self.class.generate_unique_secure_token } before_create { self.send("#{attribute}=", self.class.generate_unique_secure_token) } |