Sha256: 086b9a67c69cddb2876286adf2d01cb893afe88fd4d8e56766e363ec35ba1f16

Contents?: true

Size: 337 Bytes

Versions: 13

Compression:

Stored size: 337 Bytes

Contents

require 'rack/action_logger'

module Rack::ActionLogger::EmitAdapter
  class Base
    def self.emit(hash); end

    def self.wrap(hash)
      result = {}
      wrap_key = Rack::ActionLogger.configuration.wrap_key
      if wrap_key
        result[wrap_key] = hash
      else
        result = hash
      end
      result
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
rack-action_logger-0.4.0 lib/rack/action_logger/emit_adapter/base.rb
rack-action_logger-0.3.0 lib/rack/action_logger/emit_adapter/base.rb
rack-action_logger-0.2.0 lib/rack/action_logger/emit_adapter/base.rb
rack-action_logger-0.1.9 lib/rack/action_logger/emit_adapter/base.rb
rack-action_logger-0.1.8 lib/rack/action_logger/emit_adapter/base.rb
rack-action_logger-0.1.7 lib/rack/action_logger/emit_adapter/base.rb
rack-action_logger-0.1.6 lib/rack/action_logger/emit_adapter/base.rb
rack-action_logger-0.1.5 lib/rack/action_logger/emit_adapter/base.rb
rack-action_logger-0.1.4 lib/rack/action_logger/emit_adapter/base.rb
rack-action_logger-0.1.3 lib/rack/action_logger/emit_adapter/base.rb
rack-action_logger-0.1.2 lib/rack/action_logger/emit_adapter/base.rb
rack-action_logger-0.1.1 lib/rack/action_logger/emit_adapter/base.rb
rack-action_logger-0.1.0 lib/rack/action_logger/emit_adapter/base.rb