houdini/config/initializers/houdini_event_publisher.rb
2020-02-10 14:01:49 -06:00

11 lines
427 B
Ruby

# frozen_string_literal: true
# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
HoudiniEventPublisher = EventPublisher.new
Rails.application.config.to_prepare do
Wisper.clear if Rails.env.development?
[NonprofitMailerListener, CreditCardPaymentListener, SepaPaymentListener, TicketListener].each do |listener|
HoudiniEventPublisher.subscribe_async(listener)
end
end