Skip to content

Commit

Permalink
getting rid of a rails 3.1 warning regarding ActiveSupport::SecureRan…
Browse files Browse the repository at this point in the history
…dom (now just SecureRandom)
  • Loading branch information
Dan Croak committed Jun 9, 2011
1 parent 1f7ddba commit 8048063
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/clearance/user.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def encrypt(string)


def initialize_salt def initialize_salt
if salt.blank? if salt.blank?
self.salt = ActiveSupport::SecureRandom.hex(20) self.salt = SecureRandom.hex(20)
end end
end end


Expand All @@ -140,11 +140,11 @@ def encrypt_password
end end


def generate_remember_token def generate_remember_token
self.remember_token = ActiveSupport::SecureRandom.hex(20) self.remember_token = SecureRandom.hex(20)
end end


def generate_confirmation_token def generate_confirmation_token
self.confirmation_token = ActiveSupport::SecureRandom.hex(20) self.confirmation_token = SecureRandom.hex(20)
end end


# Always false. Override to allow other forms of authentication # Always false. Override to allow other forms of authentication
Expand Down

0 comments on commit 8048063

Please sign in to comment.