Skip to content

Commit

Permalink
Fix Typo SecureToken [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
robertomiranda committed Jan 10, 2015
1 parent 134abed commit 0f931f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/lib/active_record/secure_token.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module ClassMethods
# 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) }
Expand Down

0 comments on commit 0f931f2

Please sign in to comment.