aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/params_wrapper_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Show in log correct wrapped keysDmitry Vorotilin2012-05-201-0/+8
|
* Merge pull request #4445 from nragaz/role_based_params_wrappingJosé Valim2012-05-041-2/+15
| | | | specify a role for identifying accessible attributes when wrapping params
* Fix warning for params_wrapper_test.kennyj2011-12-081-1/+1
|
* ParamsWrapper only wrap the accessible attributes when they were setJean-Francois Turcot2011-12-071-1/+28
|
* use classify in ParamsWrapper to derive model name from controller namelest2011-12-051-0/+35
|
* Use lazy load hooks to set parameter wrapping configuration. This means that ↵Jon Leighton2011-08-161-7/+0
| | | | it doesn't force Action Controller / Active Record to load, but it doesn't fail if they have already loaded. Thanks @josevalim for the hint.
* Don't refer to ActionController::Base in the wrap_parameters initializer - ↵Jon Leighton2011-08-161-0/+7
| | | | use config object instead. Cuts about 15% off the load time. (#734)
* renamed the wrap_parameters :only and :except options to :include and ↵Josh Kalderimis2011-05-191-6/+6
| | | | :exclude to make it consistent with controller filters
* add more robust test for wrapping params with anonymous classDavid Chelimsky2011-05-171-25/+45
|
* better test nameDavid Chelimsky2011-05-171-1/+1
|
* add failing test for https://github.com/rails/rails/issues/1089David Chelimsky2011-05-171-0/+7
|
* Make ParamsWrapper calling newly introduced `Model.attribute_names` instead ↵Prem Sichanugrist2011-05-151-10/+8
| | | | of `.column_names`
* Do not try to call `column_names` on the abstract class.Prem Sichanugrist2011-05-151-1/+14
| | | Normally the table for abstract class won't be existed, so we should not trying to call `#column_names` on it.
* Get around weird missing constant error caused by AS instead of simply ↵José Valim2011-05-111-21/+24
| | | | raising NameError, closes #477.
* Fix typos in test method namesVijay Dev2011-05-031-3/+3
|
* Fix broken params_wrapper_test on 1.8.7 :bomb:Prem Sichanugrist2011-05-031-36/+80
| | | | | I have to keep in mind that 1.8.7 does *not* preserve the hash order. Guys, let's move to use 1.9.2 in production!
* Move most processing to load time for performance and improve test suite.José Valim2011-05-031-12/+27
|
* Add `ActionController::ParamsWrapper` to wrap parameters into a nested hashPrem Sichanugrist2011-05-031-0/+187
This will allow us to do a rootless JSON/XML request to server.