Methods
P
T
Included Modules
Attributes
[RW] last_parameters
Instance Public methods
parse()
# File actionpack/test/controller/params_wrapper_test.rb, line 313
def parse
  self.class.last_parameters = request.params.except(:controller, :action)
  head :ok
end
test_does_not_implicitly_wrap_params()
# File actionpack/test/controller/params_wrapper_test.rb, line 319
def test_does_not_implicitly_wrap_params
  with_default_wrapper_options do
    @request.env['CONTENT_TYPE'] = 'application/json'
    post :parse, { 'username' => 'sikachu' }
    assert_parameters({ 'username' => 'sikachu' })
  end
end
test_does_wrap_params_if_name_provided()
# File actionpack/test/controller/params_wrapper_test.rb, line 327
def test_does_wrap_params_if_name_provided
  with_default_wrapper_options do
    @controller.class.wrap_parameters(:name => "guest")
    @request.env['CONTENT_TYPE'] = 'application/json'
    post :parse, { 'username' => 'sikachu' }
    assert_parameters({ 'username' => 'sikachu', 'guest' => { 'username' => 'sikachu' }})
  end
end