diff options
author | Matthew Landauer <matthew@openaustralia.org> | 2013-02-15 11:37:00 +1100 |
---|---|---|
committer | Matthew Landauer <matthew@openaustralia.org> | 2013-02-15 11:37:00 +1100 |
commit | 759ce4d275f4c08a913f77822a88a096c54df94d (patch) | |
tree | 6cd96e35b3f8660378c79e804ac0573f22f24d0f /config/environments/development.rb | |
parent | 6d7a5581b5cae48f77062636f88bd2fa24553859 (diff) |
Add configuration to force ssl for the whole site
Diffstat (limited to 'config/environments/development.rb')
-rw-r--r-- | config/environments/development.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/config/environments/development.rb b/config/environments/development.rb index c43cdb049..04680f17c 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -27,3 +27,5 @@ config.action_mailer.smtp_settings = { :address => "localhost", :port => 1025 } # unintentionally kept references to objects, especially strings. # require 'memory_profiler' # MemoryProfiler.start :string_debug => true, :delay => 10 + +config.middleware.insert_after ActionController::Failsafe, "Rack::SSL" if ::Configuration::force_ssl |