Migrate all secrets to config/secrets.yml

This commit is contained in:
Henne Vogelsang 2014-05-12 18:32:26 +02:00
parent 9090cc0d38
commit ee5d48d494
8 changed files with 29 additions and 20 deletions

View file

@ -2,7 +2,7 @@
# Many of these configuration options can be set straight in your model.
Devise.setup do |config|
# ==> Secret key, generate one with `rake secret`
config.secret_key = CONFIG['devise_secret_key']
config.secret_key = Rails.application.secrets.devise_secret_key
# ==> Mailer Configuration
# Configure the e-mail address which will be shown in Devise::Mailer,