Sha256: 9d81652d54e65bf3911e0684515563225c1bb452950b89e842bacf195e72e282

Contents?: true

Size: 276 Bytes

Versions: 6

Compression:

Stored size: 276 Bytes

Contents

module DiviningRod
  class Rack

    def initialize(app)
      @app = app
    end

    def call(env)
      request = ::Rack::Request.new(env)
      profile = DiviningRod::Profile.new(request)
      env['divining_rod.profile'] = profile
      @app.call(env)
    end

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
divining_rod-0.6.4 lib/divining_rod/rack/divining_rack.rb
divining_rod-0.6.3 lib/divining_rod/rack/divining_rack.rb
divining_rod-0.6.2 lib/divining_rod/rack/divining_rack.rb
divining_rod-0.6.1 lib/divining_rod/rack/divining_rack.rb
divining_rod-0.6.0 lib/divining_rod/rack/divining_rack.rb
divining_rod-0.5.0 lib/divining_rod/rack/divining_rack.rb