houdini/config/initializers/houdini_event_publisher.rb

12 lines
427 B
Ruby
Raw Normal View History

2020-01-06 20:03:03 +00:00
# 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
2020-02-10 20:01:49 +00:00
Wisper.clear if Rails.env.development?
[NonprofitMailerListener, CreditCardPaymentListener, SepaPaymentListener, TicketListener].each do |listener|
HoudiniEventPublisher.subscribe_async(listener)
end
2020-01-06 20:03:03 +00:00
end