Sha256: b78fbb7ad8cc0e3844c6ee3f9b2070e8a396783ff28a70ffbfcef23130e513ca

Contents?: true

Size: 295 Bytes

Versions: 1

Compression:

Stored size: 295 Bytes

Contents

# Hook file for app
module RailsMiddlewareLog
  class Hooks
    def self.init
      return unless RailsMiddlewareLog.config.target_urls
      ActiveSupport.on_load(:after_initialize) do
        RailsMiddlewareLog::Log.init(Rails.configuration.middleware.middlewares)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails_middleware_log-0.1.0 lib/rails_middleware_log/hooks.rb