aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Landauer <matthew@openaustralia.org>2013-02-19 11:12:41 +1100
committerMatthew Landauer <matthew@openaustralia.org>2013-02-19 11:12:41 +1100
commit334769f7f261773d9c07a1b92c811ef588dd10b2 (patch)
tree6100f81c9f5ddbd5ffe965d149916b42432025c4
parent6025f891c1979d423c7703a8b69f7f8eca26d44e (diff)
Add comment about middleware change for rails 3
-rw-r--r--config/environments/production.rb6
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