Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turn off for Exception Notification #13

Closed
jonathanng opened this issue Aug 14, 2014 · 6 comments
Closed

Turn off for Exception Notification #13

jonathanng opened this issue Aug 14, 2014 · 6 comments

Comments

@jonathanng
Copy link

Not sure where to stick the below code if I want to disable tracking for Exception Notification:

track message: false
@ankane
Copy link
Owner

ankane commented Aug 16, 2014

I'm not sure I understand the question. Can you elaborate?

@jonathanng
Copy link
Author

I'm using the Exception Notification gem. As explained in its readme:

"The Exception Notification gem provides a set of notifiers for sending notifications when errors occur in a Rack/Rails application."

I don't need to track these emails since they are only sent to our development team (including myself).

How do I turn off tracking for these emails?

@ankane
Copy link
Owner

ankane commented Aug 17, 2014

It looks like you can specify a parent class for the mailer, so you can add the track method there https://github.com/smartinez87/exception_notification/blob/master/lib/exception_notifier/email_notifier.rb#L141

@jonathanng
Copy link
Author

This works! Should I add this to the readme?

@ankane
Copy link
Owner

ankane commented Aug 19, 2014

Awesome! The wiki is probably a better place as I don't think this will be relevant for most users.

@ankane ankane closed this as completed Aug 19, 2014
@guyisra
Copy link

guyisra commented Nov 23, 2014

@jonathanng how was this solved? you added a blank class that inherits activemailer?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants