Sha256: a52e5c96699f2719e9cf6a3cd18330b8920ebd94f7a94b383db84cd6b2f520f5

Contents?: true

Size: 539 Bytes

Versions: 3

Compression:

Stored size: 539 Bytes

Contents

module PubsubNotifier
  class Railtie < ::Rails::Railtie
    initializer "pubsub_notifier" do
      ActiveSupport.on_load :active_record do
        ActiveRecord::Base.send :include, ::PubsubNotifier::Proxy
      end

      ActiveSupport.on_load :active_job do
        require "pubsub_notifier/broadcasters/active_job_broadcaster"
      end

      ActiveSupport.on_load :action_mailer do
        require "pubsub_notifier/acts_as_notifier"
        ActionMailer::Base.send :include, PubsubNotifier::ActsAsNotifier
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pubsub_notifier-0.1.2 lib/pubsub_notifier/railtie.rb
pubsub_notifier-0.1.1 lib/pubsub_notifier/railtie.rb
pubsub_notifier-0.1.0 lib/pubsub_notifier/railtie.rb