class Ahoy::Engine

Constants

AHOY_PREFIX

Parse PATH_INFO by assets prefix

Public Instance Methods

call_with_quiet_ahoy(env) click to toggle source
# File lib/ahoy/engine.rb, line 16
def call_with_quiet_ahoy(env)
  if env["PATH_INFO"].start_with?(AHOY_PREFIX) && logger.respond_to?(:silence)
    logger.silence do
      call_without_quiet_ahoy(env)
    end
  else
    call_without_quiet_ahoy(env)
  end
end