Skip to content
This repository has been archived by the owner on Jan 15, 2020. It is now read-only.

Commit

Permalink
Rationalizing email addresses used for error sending.
Browse files Browse the repository at this point in the history
  • Loading branch information
sfisher committed Sep 20, 2017
1 parent 8ec5dc9 commit 20ec87e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions config/environments/demo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,13 @@

#this is obnovious because the initializers haven't run yet, so have to duplicate code to read config
ac = YAML.load_file(File.join(Rails.root, 'config', 'app_config.yml'))[Rails.env]
unless ac['support_team_email'].blank?
unless ac['page_error_email'].blank?
Rails.application.config.middleware.use ExceptionNotification::Rack,
:email => {
# :deliver_with => :deliver, # Rails >= 4.2.1 do not need this option since it defaults to :deliver_now
:email_prefix => "[Dash Exception]",
:sender_address => %{"Dash Notifier" <no-reply-dash2@ucop.edu>},
:exception_recipients => ac['support_team_email']
:exception_recipients => ac['page_error_email']
}
end

Expand Down
4 changes: 2 additions & 2 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,13 @@

#this is obnovious because the initializers haven't run yet, so have to duplicate code to read config
ac = YAML.load_file(File.join(Rails.root, 'config', 'app_config.yml'))[Rails.env]
unless ac['support_team_email'].blank?
unless ac['page_error_email'].blank?
Rails.application.config.middleware.use ExceptionNotification::Rack,
:email => {
# :deliver_with => :deliver, # Rails >= 4.2.1 do not need this option since it defaults to :deliver_now
:email_prefix => "[Dash Exception]",
:sender_address => %{"Dash Notifier" <no-reply-dash2@ucop.edu>},
:exception_recipients => ac['support_team_email']
:exception_recipients => ac['page_error_email']
}
end

Expand Down

0 comments on commit 20ec87e

Please sign in to comment.