Skip to content

Prevent email notification based on attached_object_type #11

Open

Description

@rtcoms

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 ?

Activity

  1. rtcoms commented on Sep 18, 2017

    @rtcoms
    Author

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions