lib/simple_auth/config.rb in simple_auth-1.4.0 vs lib/simple_auth/config.rb in simple_auth-1.4.1
- old
+ new
@@ -25,10 +25,10 @@
# Generate the password salt. The specified block should expect
# the ActiveRecord instance as block parameter.
cattr_accessor :salt
@@salt = proc do |record|
- Digest::SHA256.hexdigest [Time.to_s, ActiveSupport::SecureRandom.hex(32)].join("--")
+ Digest::SHA256.hexdigest [Time.to_s, SecureRandom.hex(32)].join("--")
end
# Set which attributes will be used for authentication.
cattr_accessor :credentials
@@credentials = [:email, :login]