Skip to content

Instantly share code, notes, and snippets.

@ahmad-elassuty
Created January 31, 2021 20:14
Event router example
module Events
class PullRequestUpdated < EventRouter::Event
deliver_to :mailer, handler: Mailer
deliver_to :notification_center, handler: NotificationCenter
deliver_to :activity_timeline, handler: ActivityTimeline
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment