Sha256: c9b1dc100250d4a367f7de0e29b0f1709703c0b5d7da038f17bd1c7c409b3d47

Contents?: true

Size: 370 Bytes

Versions: 1

Compression:

Stored size: 370 Bytes

Contents

module Rack; end
class Rack::RailsLogger
  def initialize app
    @app = app
  end

  def call env
    racklogger(env, @app.config,
                    Rails,
                    ActionController::Base,
                    ActiveRecord::Base)
    @app.call(env)
  end

  def racklogger env, *mods
    mods.each{ |mod| mod.send(:logger=, env['rack.logger']) }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rack-rails-logger-1.0.0 lib/rack-rails-logger.rb