Sha256: 70dac1397284c3779023918b9558dc15ffdf0c03ca3241b4865b9eb387d90f26

Contents?: true

Size: 680 Bytes

Versions: 42

Compression:

Stored size: 680 Bytes

Contents

module ActionSubscriber
  class Railtie < ::Rails::Railtie
    config.action_subscriber = ::ActionSubscriber.config

    ::ActiveSupport.on_load(:active_record) do
      require "action_subscriber/middleware/active_record/connection_management"
      require "action_subscriber/middleware/active_record/query_cache"

      ::ActionSubscriber.config.middleware.insert_after ::ActionSubscriber::Middleware::Decoder, ::ActionSubscriber::Middleware::ActiveRecord::ConnectionManagement
      ::ActionSubscriber.config.middleware.insert_after ::ActionSubscriber::Middleware::ActiveRecord::ConnectionManagement, ::ActionSubscriber::Middleware::ActiveRecord::QueryCache
    end
  end
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
action_subscriber-5.3.3-java lib/action_subscriber/railtie.rb
action_subscriber-5.3.3 lib/action_subscriber/railtie.rb
action_subscriber-5.3.2-java lib/action_subscriber/railtie.rb
action_subscriber-5.3.2 lib/action_subscriber/railtie.rb
action_subscriber-5.3.1-java lib/action_subscriber/railtie.rb
action_subscriber-5.3.1 lib/action_subscriber/railtie.rb
action_subscriber-5.3.1.pre-java lib/action_subscriber/railtie.rb
action_subscriber-5.3.1.pre lib/action_subscriber/railtie.rb
action_subscriber-5.3.0-java lib/action_subscriber/railtie.rb
action_subscriber-5.3.0 lib/action_subscriber/railtie.rb
action_subscriber-5.2.4-java lib/action_subscriber/railtie.rb
action_subscriber-5.2.4 lib/action_subscriber/railtie.rb
action_subscriber-5.2.3-java lib/action_subscriber/railtie.rb
action_subscriber-5.2.3 lib/action_subscriber/railtie.rb
action_subscriber-5.2.2-java lib/action_subscriber/railtie.rb
action_subscriber-5.2.2 lib/action_subscriber/railtie.rb
action_subscriber-5.2.1-java lib/action_subscriber/railtie.rb
action_subscriber-5.2.1 lib/action_subscriber/railtie.rb
action_subscriber-5.2.0-java lib/action_subscriber/railtie.rb
action_subscriber-5.2.0 lib/action_subscriber/railtie.rb