Skip to content

Commit

Permalink
Don't modify options in EmailNotifier
Browse files Browse the repository at this point in the history
Closes #147
  • Loading branch information
jweslley committed May 8, 2013
1 parent 11d61df commit 52d3b79
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/exception_notifier.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def notify_exception(exception, options={})
return if ignored_exception?(options[:ignore_exceptions], exception)
selected_notifiers = options.delete(:notifiers) || notifiers
[*selected_notifiers].each do |notifier|
fire_notification(notifier, exception, options)
fire_notification(notifier, exception, options.dup)
end
end

Expand Down
2 changes: 1 addition & 1 deletion lib/exception_notifier/email_notifier.rb
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def call(exception, options={})
end

def create_email(exception, options={})
env = options.delete(:env)
env = options[:env]
default_options = self.options
if env.nil?
mailer.background_exception_notification(exception, options, default_options)
Expand Down

0 comments on commit 52d3b79

Please sign in to comment.