-
Does anyone have an example of a custom bulk delivery method? I don't see any documentation on creating one, what to inherit from, and where to place it. I've tried: # app/notifiers/new_customer_notifier.rb
class NewCustomerNotifier < ApplicationNotifier
required_param :account_id
bulk_deliver_by :internal, class: DeliveryMethods::Internal.name, account_id: 1
end # app/notifiers/deliver_methods/internal.rb
class DeliveryMethods::Internal < BulkDeliveryMethod
required_options :account_id
def deliver
# send an email to the account owner
end
end And get |
Beta Was this translation helpful? Give feedback.
Answered by
excid3
Jan 17, 2025
Replies: 1 comment 2 replies
-
Try: class DeliveryMethods::Internal < Noticed::BulkDeliveryMethod |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
t2
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Try: