diff options
-rw-r--r-- | config/environments/production.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/config/environments/production.rb b/config/environments/production.rb index 667d86b7a..097944196 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -19,4 +19,8 @@ config.action_controller.perform_caching = true config.action_mailer.delivery_method = :sendmail # so is queued, rather than giving immediate errors require 'rack/ssl' -config.middleware.insert_after ActionController::Failsafe, ::Rack::SSL if ::Configuration::force_ssl +if ::Configuration::force_ssl + config.middleware.insert_after ActionController::Failsafe, ::Rack::SSL + # For Rails 3.x this will need to change to + #config.middleware.insert_before ActionDispatch::Cookies, ::Rack::SSL +end |