Sha256: 6bfd4c3675dd90db70d29f89fa3860b3ab8f7eab7c5e98d0f68ca28354a3f6b4

Contents?: true

Size: 447 Bytes

Versions: 5

Compression:

Stored size: 447 Bytes

Contents

module Rack::App::InstanceMethods::Params

  E = ::Rack::App::Constants::ENV

  def params
    request.env[E::PARAMS].to_hash
  end

  def validated_params
    request.env[E::PARAMS].validated_params
  end

  Rack::App::Utils.deprecate(self, :validated_params, :params, 2017, 07)

  def path_segments_params
    request.env[E::PARAMS].path_segments_params
  end

  def query_string_params
    request.env[E::PARAMS].query_string_params
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rack-app-7.2.2 lib/rack/app/instance_methods/params.rb
rack-app-7.2.1 lib/rack/app/instance_methods/params.rb
rack-app-7.2.0 lib/rack/app/instance_methods/params.rb
rack-app-7.1.0 lib/rack/app/instance_methods/params.rb
rack-app-7.0.0 lib/rack/app/instance_methods/params.rb