Sha256: 42e49aad3b469da1b6681f115fe4ffeed34317fb05421ddabf913a7c060623de

Contents?: true

Size: 292 Bytes

Versions: 21

Compression:

Stored size: 292 Bytes

Contents

class Rack::App::Middlewares::Params::Setter

  def initialize(app)
    @app = app
  end

  def call(env)
    env[::Rack::App::Constants::ENV::PARSED_PARAMS] ||= params_hash(env)

    @app.call(env)
  end

  protected

  def params_hash(env)
    Rack::App::Params.new(env).to_hash
  end

end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
rack-app-6.0.0 lib/rack/app/middlewares/params/setter.rb
rack-app-5.12.0 lib/rack/app/middlewares/params/setter.rb
rack-app-5.11.1 lib/rack/app/middlewares/params/setter.rb
rack-app-5.11.0 lib/rack/app/middlewares/params/setter.rb
rack-app-5.10.2 lib/rack/app/middlewares/params/setter.rb
rack-app-5.10.1 lib/rack/app/middlewares/params/setter.rb
rack-app-5.10.0 lib/rack/app/middlewares/params/setter.rb
rack-app-5.9.0 lib/rack/app/middlewares/params/setter.rb
rack-app-5.8.0 lib/rack/app/middlewares/params/setter.rb
rack-app-5.7.0 lib/rack/app/middlewares/params/setter.rb
rack-app-5.7.0.rc lib/rack/app/middlewares/params/setter.rb
rack-app-5.6.0 lib/rack/app/middlewares/params/setter.rb
rack-app-5.5.1 lib/rack/app/middlewares/params/setter.rb
rack-app-5.4.0 lib/rack/app/middlewares/params/setter.rb
rack-app-5.3.2 lib/rack/app/middlewares/params/setter.rb
rack-app-5.3.1 lib/rack/app/middlewares/params/setter.rb
rack-app-5.3.0 lib/rack/app/middlewares/params/setter.rb
rack-app-5.2.0 lib/rack/app/middlewares/params/setter.rb
rack-app-5.1.0 lib/rack/app/middlewares/params/setter.rb
rack-app-5.0.0 lib/rack/app/middlewares/params/setter.rb