Skip to content

Commit 54f0eca

Browse files
committed
Fix spaces and indentation.
1 parent 47e4c2b commit 54f0eca

File tree

2 files changed

+21
-22
lines changed

2 files changed

+21
-22
lines changed

lib/exception_notifier.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ def self.default_ignore_exceptions
1212

1313
def initialize(app, options = {})
1414
@app, @options = app, options
15-
15+
1616
Notifier.default_sender_address = @options[:sender_address]
1717
Notifier.default_exception_recipients = @options[:exception_recipients]
1818
Notifier.default_email_prefix = @options[:email_prefix]
1919
Notifier.default_sections = @options[:sections]
20-
20+
2121
@options[:ignore_exceptions] ||= self.class.default_ignore_exceptions
2222
end
2323

lib/exception_notifier/notifier.rb

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class << self
1111
attr_writer :default_exception_recipients
1212
attr_writer :default_email_prefix
1313
attr_writer :default_sections
14-
14+
1515
def default_sender_address
1616
@default_sender_address || %("Exception Notifier" <[email protected]>)
1717
end
@@ -65,25 +65,24 @@ def exception_notification(env, exception)
6565
end
6666

6767
private
68-
69-
def clean_backtrace(exception)
70-
Rails.respond_to?(:backtrace_cleaner) ?
71-
Rails.backtrace_cleaner.send(:filter, exception.backtrace) :
72-
exception.backtrace
73-
end
74-
75-
helper_method :inspect_object
76-
77-
def inspect_object(object)
78-
case object
79-
when Hash, Array
80-
object.inspect
81-
when ActionController::Base
82-
"#{object.controller_name}##{object.action_name}"
83-
else
84-
object.to_s
85-
end
68+
69+
def clean_backtrace(exception)
70+
Rails.respond_to?(:backtrace_cleaner) ?
71+
Rails.backtrace_cleaner.send(:filter, exception.backtrace) :
72+
exception.backtrace
73+
end
74+
75+
helper_method :inspect_object
76+
77+
def inspect_object(object)
78+
case object
79+
when Hash, Array
80+
object.inspect
81+
when ActionController::Base
82+
"#{object.controller_name}##{object.action_name}"
83+
else
84+
object.to_s
8685
end
87-
86+
end
8887
end
8988
end

0 commit comments

Comments
 (0)