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

Prevent email notification based on attached_object_type #11

Open
rtcoms opened this issue Sep 18, 2017 · 1 comment
Open

Prevent email notification based on attached_object_type #11

rtcoms opened this issue Sep 18, 2017 · 1 comment

Comments

@rtcoms
Copy link

rtcoms commented Sep 18, 2017

current configuration allow to prevent email only on basis of receiver and notification_type.

Wupee.email_sending_rule = Proc.new do |receiver, notification_type| 
end

In my case I need to prevent email notification based on attached_object type. How should I go about it ?

@rtcoms
Copy link
Author

rtcoms commented Sep 18, 2017

Solved in by having a separate attribute on receiver and using that in Wupee.email_sending_rule Proc. Closing it.

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

1 participant