diff options
author | Louise Crow <louise.crow@gmail.com> | 2013-11-12 10:43:06 +0000 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2013-11-12 10:43:06 +0000 |
commit | 49ec8adf7027992377f8e322ef69db503e6eb94a (patch) | |
tree | e95fcbff40134be33130467ba4d5e10fee6e4605 /config/environments/development.rb | |
parent | 4598c4d5c03e026c00881f0ecfd51c8ef33ea9aa (diff) | |
parent | 3a9c244e75d44a0a65b51eb1144a0b2d64911a75 (diff) |
Merge branch 'rails-3-develop' of ssh://git.mysociety.org/data/git/public/alaveteli into rails-3-develop
Diffstat (limited to 'config/environments/development.rb')
-rw-r--r-- | config/environments/development.rb | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/config/environments/development.rb b/config/environments/development.rb index 54ab2977f..a912dd5de 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -16,9 +16,14 @@ Alaveteli::Application.configure do # Don't care if the mailer can't send config.action_mailer.raise_delivery_errors = false config.action_mailer.perform_deliveries = true - # Use mailcatcher in development - config.action_mailer.delivery_method = :smtp # so is queued, rather than giving immediate errors - config.action_mailer.smtp_settings = { :address => "localhost", :port => 1025 } + + if AlaveteliConfiguration::use_mailcatcher_in_development + # Use mailcatcher in development + config.action_mailer.delivery_method = :smtp # so is queued, rather than giving immediate errors + config.action_mailer.smtp_settings = { :address => "localhost", :port => 1025 } + else + config.action_mailer.delivery_method = :sendmail + end # Writes useful log files to debug memory leaks, of the sort where have # unintentionally kept references to objects, especially strings. |