Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Removed secret token from repo, fixes #234
Using a different one in dev and test, requires an ENV variable in
production
  • Loading branch information
andrew committed Jan 1, 2013
1 parent 1c6226f commit 38e59ca
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions config/initializers/secret_token.rb
@@ -0,0 +1,6 @@
if Rails.env.production? && ENV['SECRET_TOKEN'].blank?
raise 'SECRET_TOKEN environment variable must be set!'
end

Tfpullrequests::Application.config.secret_token =
ENV['SECRET_TOKEN'] || '9e54bbeeb2a8573aee35f49c56406f705443fc4afc9e7037a79b9cd8065b592df6d97b5f41ba12acc46fdf61a60363e00ea2debae684bad89cfd5a2b74049091'

0 comments on commit 38e59ca

Please sign in to comment.