diff options
author | Matthew Landauer <matthew@openaustralia.org> | 2013-02-19 10:52:48 +1100 |
---|---|---|
committer | Matthew Landauer <matthew@openaustralia.org> | 2013-02-19 10:52:48 +1100 |
commit | 6025f891c1979d423c7703a8b69f7f8eca26d44e (patch) | |
tree | eaee1527bf74e45aa9bb6b1fd3bea2839a836d6f | |
parent | 521122ea8611de83b9ba8df3b091f9c4f38c3676 (diff) |
Fix for incoming mailer failing with undefined method `new' for "Rack::SSL":String
-rw-r--r-- | config/environments/production.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/config/environments/production.rb b/config/environments/production.rb index 0b3f5e9b3..667d86b7a 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -18,4 +18,5 @@ config.action_controller.perform_caching = true # config.action_mailer.raise_delivery_errors = false config.action_mailer.delivery_method = :sendmail # so is queued, rather than giving immediate errors -config.middleware.insert_after ActionController::Failsafe, "Rack::SSL" if ::Configuration::force_ssl +require 'rack/ssl' +config.middleware.insert_after ActionController::Failsafe, ::Rack::SSL if ::Configuration::force_ssl |