diff options
author | Louise Crow <louise.crow@gmail.com> | 2014-02-28 13:36:42 +0000 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2014-02-28 13:36:42 +0000 |
commit | 2a49615ee3ea08f7952283efc0306a1ac0c23334 (patch) | |
tree | 8a726d7af4ba4a513f921d35fd3b98e3ce9fac78 | |
parent | 104e2cf52b1f199b827a9552c94e246070986f86 (diff) |
Add a new config var for sending survey emails
Add this new var and survey_url to lib/configuration so that they
can be more easily stubbed in tests.
-rw-r--r-- | config/general.yml-example | 4 | ||||
-rw-r--r-- | lib/configuration.rb | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/config/general.yml-example b/config/general.yml-example index 01936e648..55cab0801 100644 --- a/config/general.yml-example +++ b/config/general.yml-example @@ -175,7 +175,11 @@ GA_CODE: '' # We need to add the WDTK survey variables here, or else the deployment # system will cry. SURVEY_SECRET: '' +# Blank this out if the survey host is unavailable - people going to the +# survey URL will get a message that the survey is unavailable SURVEY_URL: '' +# Set this to false if you don't want survey emails to be sent +SEND_SURVEY_MAILS: true # If you want to override *all* the public body request emails with your own # email so that request emails that would normally go to the public body diff --git a/lib/configuration.rb b/lib/configuration.rb index 2192433f7..40a426f65 100644 --- a/lib/configuration.rb +++ b/lib/configuration.rb @@ -60,6 +60,8 @@ module AlaveteliConfiguration :SITE_NAME => 'Alaveteli', :SKIP_ADMIN_AUTH => false, :SPECIAL_REPLY_VERY_LATE_AFTER_DAYS => 60, + :SURVEY_URL => '', + :SEND_SURVEY_MAILS => true, :THEME_BRANCH => false, :THEME_URL => "", :THEME_URLS => [], |