Sha256: 104ad3e0f235b629a2981e2783948afeecc8d9cd60e194980eb72724cbbbf43c

Contents?: true

Size: 320 Bytes

Versions: 2

Compression:

Stored size: 320 Bytes

Contents

module Ahoy
  class Engine < ::Rails::Engine
    initializer "ahoy.middleware", after: "sprockets.environment" do |app|
      Rails::Rack::Logger.send(:prepend, Ahoy::LogSilencer) if Ahoy.quiet

      if Ahoy.throttle
        require "ahoy/throttle"
        app.middleware.use Ahoy::Throttle
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ahoy_matey-1.3.1 lib/ahoy/engine.rb
ahoy_matey-1.3.0 lib/ahoy/engine.rb