Skip to content

Commit

Permalink
the session is not used
Browse files Browse the repository at this point in the history
  • Loading branch information
luxflux committed Mar 12, 2013
1 parent c4e2889 commit 7ad6b11
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions config/initializers/secret_token.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,4 @@
# Make sure the secret is at least 30 characters and all random,
# no regular words or you'll be exposed to dictionary attacks.

if ENV['SECRET_TOKEN'].present?
CASinoApp::Application.config.secret_token = ENV['SECRET_TOKEN']
elsif ENV['RAILS_GROUPS'] != 'assets'
raise <<-ERROR
You must generate a unique secret token for your CASinoApp.
If you are deploying via capistrano, please ensure that your `config/deploy.rb` contains
the `casinoapp:setup_configs` and `errbit:symlink_configs` tasks from `config/deploy.example.rb`.
Next time you deploy, your secret token will be automatically generated.
If you are deploying to Heroku, please run the following command to set your secret token:
heroku config:add SECRET_TOKEN="$(bundle exec rake secret)"
ERROR
end
CASinoApp::Application.config.secret_token = '82bd3084a8ca1c49d3f4d988e458dfd210716fc957a637722a80d3ca0d1571832a954b7710cbff92dfe293796b9f01af1c8b19568eb7ebeaefade27a4b596257'

0 comments on commit 7ad6b11

Please sign in to comment.