about summary refs log tree commit diff stats
path: root/config/initializers
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2017-07-02 21:51:52 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2017-07-02 21:51:52 -0400
commita87c24174b81b50e4c1883196cc2885c62e863b0 (patch)
tree9ecf530244fcd0157f4af80d8dd8aef6a847471b /config/initializers
parentd56eeae8acb56d6dac52c01c71eb26bed3acee48 (diff)
downloadthoughts-a87c24174b81b50e4c1883196cc2885c62e863b0.tar.gz
thoughts-a87c24174b81b50e4c1883196cc2885c62e863b0.tar.bz2
thoughts-a87c24174b81b50e4c1883196cc2885c62e863b0.zip
Added devise secret key env
Diffstat (limited to 'config/initializers')
-rw-r--r--config/initializers/devise.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/config/initializers/devise.rb b/config/initializers/devise.rb index f85c0a6..822cec4 100644 --- a/config/initializers/devise.rb +++ b/config/initializers/devise.rb
@@ -7,6 +7,9 @@ Devise.setup do |config|
7 # Devise will use the `secret_key_base` as its `secret_key` 7 # Devise will use the `secret_key_base` as its `secret_key`
8 # by default. You can change it below and use your own secret key. 8 # by default. You can change it below and use your own secret key.
9 # config.secret_key = 'f85d289a63b03808f899604ae6f3b1ba93430a8a7e9a5c0ee817471e4d4e201f000e8d42386392d4c24add7b4e2f0e011ea491c1febb57b37301e63b67f0ed60' 9 # config.secret_key = 'f85d289a63b03808f899604ae6f3b1ba93430a8a7e9a5c0ee817471e4d4e201f000e8d42386392d4c24add7b4e2f0e011ea491c1febb57b37301e63b67f0ed60'
10 if Rails.env == 'production'
11 config.secret_key = ENV['DEVISE_SECRET_KEY']
12 end
10 13
11 # ==> Mailer Configuration 14 # ==> Mailer Configuration
12 # Configure the e-mail address which will be shown in Devise::Mailer, 15 # Configure the e-mail address which will be shown in Devise::Mailer,