sleede / wupee

Very simple notification system for rails
https://github.com/sleede/wupee
MIT License
26 stars 8 forks source link

Prevent email notification based on attached_object_type #11

Open rtcoms opened 6 years ago

rtcoms commented 6 years ago

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 commented 6 years ago

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