Skip to content

Commit 9967bcc

Browse files
author
Onur Özgür ÖZKAN
committed
#35 add exception notification
1 parent 26e1ac6 commit 9967bcc

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

lib/cybele/app_builder.rb

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,24 @@ def configure_smtp
113113
configure_environment 'production', config
114114
end
115115

116+
# Interval: Setup exception_notification
117+
def set_exception_notification
118+
config = <<-RUBY
119+
config.middleware.use ExceptionNotifier,
120+
:email_prefix => "[#{app_name}] ",
121+
:sender_address => %{"notifier" <no-reply@#{app_name}.com>},
122+
:exception_recipients => %w{[email protected]} #TODO change this with original
123+
RUBY
124+
125+
configure_environment 'production', config
126+
end
127+
116128
# Interval: Configure action mailer
117129
def configure_action_mailer
118130
action_mailer_host 'development', "#{app_name}.dev"
119131
action_mailer_host 'test', "#{app_name}.com"
120132
action_mailer_host 'production', "#{app_name}.com"
133+
121134
end
122135

123136
# Interval: Setup letter opener

0 commit comments

Comments
 (0)