Browse files

heroku tweak again

  • Loading branch information...
1 parent 532f1e0 commit d5c1b7a5bbf466a0727d818dbfe47a435832dab7 @stevenhaddox committed Jun 13, 2010
Showing with 5 additions and 7 deletions.
  1. +5 −7 config/initializers/session_store.rb
View
12 config/initializers/session_store.rb
@@ -4,13 +4,11 @@
# If you change this key, all old sessions will become invalid!
# Make sure the secret is at least 30 characters and all random,
# no regular words or you'll be exposed to dictionary attacks.
-secret = File.read(File.join(RAILS_ROOT, 'config/secret')).strip
-unless secret
- if Rails.env == 'production'
- secret = ENV['SECRET']
- else
- secret = ENV['F4T_SECRET']
- end
+if Rails.env == 'production'
+ secret = ENV['SECRET']
+else
+ secret = File.read(File.join(RAILS_ROOT, 'config/secret')).strip
+ secret = ENV['F4T_SECRET'] unless secret
end
ActionController::Base.session = {

0 comments on commit d5c1b7a

Please sign in to comment.