@@ -17,13 +17,13 @@ First, include the ExceptionNotifiable mixin in whichever controller you want
17
17
to generate error emails (typically ApplicationController):
18
18
19
19
class ApplicationController < ActionController::Base
20
- include ExceptionNotifiable
20
+ include ExceptionNotification::Notifiable
21
21
...
22
22
end
23
23
24
24
Then, specify the email recipients in your environment:
25
25
26
- ExceptionNotifier .exception_recipients = %w(
[email protected] [email protected] )
26
+ ExceptionNotification::Notifier .exception_recipients = %w(
[email protected] [email protected] )
27
27
28
28
And that's it! The defaults take care of the rest.
29
29
@@ -33,11 +33,11 @@ You can tweak other values to your liking, as well. In your environment file,
33
33
just set any or all of the following values:
34
34
35
35
36
- ExceptionNotifier .sender_address =
36
+ ExceptionNotification::Notifier .sender_address =
37
37
%("Application Error" <
[email protected] >)
38
38
39
39
# defaults to "[ERROR] "
40
- ExceptionNotifier .email_prefix = "[APP] "
40
+ ExceptionNotification::Notifier .email_prefix = "[APP] "
41
41
42
42
Even if you have mixed into ApplicationController you can skip notification in
43
43
some controllers by
@@ -76,7 +76,7 @@ requests bugs. To return original functionality add an initializer with:
76
76
or just include it per controller that wants it
77
77
78
78
class MyController < ApplicationController
79
- include ConsiderLocal
79
+ include ExceptionNotification:: ConsiderLocal
80
80
end
81
81
82
82
== Customization
@@ -97,7 +97,7 @@ access to the following variables:
97
97
* @sections: the array of sections to include in the email
98
98
99
99
You can reorder the sections, or exclude sections completely, by altering the
100
- ExceptionNotifier .sections variable. You can even add new sections that
100
+ ExceptionNotification::Notifier .sections variable. You can even add new sections that
101
101
describe application-specific data--just add the section's name to the list
102
102
(whereever you'd like), and define the corresponding partial. Then, if your
103
103
new section requires information that isn't available by default, make sure
0 commit comments