Place Rack:SSL before hoptoad

This commit is contained in:
Maxwell Salzberg 2012-01-18 18:07:44 -08:00
parent 8ae9fdfd81
commit 1fe7793ec5

View file

@ -1 +1,4 @@
Rails.application.config.middleware.insert_before(Rack::Runtime, Rack::SSL) if EnviromentConfiguration.enforce_ssl?
if EnviromentConfiguration.enforce_ssl?
Rails.application.config.middleware.insert_before HoptoadNotifier::UserInformer, Rack::SSL
puts "Rack::SSL is enabled"
end