class Object
Constants
- APP_PATH
Public Instance Methods
secure_token()
click to toggle source
# File lib/railsbricks/assets/config/initializers/devise_email/devise.rb, line 1 def secure_token token_file = Rails.root.join('.secret') if File.exist?(token_file) # Use the existing token. File.read(token_file).chomp else # Generate a new token and store it in token_file. token = SecureRandom.hex(64) File.write(token_file, token) token end end