aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/metal/params_wrapper.rb
Commit message (Collapse)AuthorAgeFilesLines
* Remove warning of circular requireRafael Mendonça França2012-11-271-1/+1
| | | | | | | | | This file was using mime_types before load the Mime::Type class. When trying to register first Mime::Type it load mime_type that loads mime_types in the end. Requiring mime_type ensure that we have the class definition and the mime types
* lazily calculate name in the options objectAaron Patterson2012-11-131-14/+18
|
* move include calculation to include method on the options objectAaron Patterson2012-11-131-9/+24
|
* model name is lazily evaluated in the options objectAaron Patterson2012-11-131-27/+37
|
* move the controller class to the options objectAaron Patterson2012-11-131-9/+12
|
* attribute_names will always return a list, so just use any?Aaron Patterson2012-11-131-1/+1
|
* wrap up hash conversion in the constructorAaron Patterson2012-11-131-5/+5
|
* use the options object in the wrapper defaultsAaron Patterson2012-11-131-13/+12
|
* start using options objectAaron Patterson2012-11-131-9/+20
|
* only do hash lookups on options onceAaron Patterson2012-11-131-13/+15
|
* replace present? with any? to reduce dependency on ASAaron Patterson2012-11-131-1/+1
|
* Multiple changes to 1,9 hash syntaxAvnerCohen2012-10-271-2/+2
|
* update AC::ParamsWrapper documentation [ci skip]Francesco Rodriguez2012-09-191-3/+4
|
* Remove integration between attr_accessible/protected and ↵Guillermo Iguaran2012-09-161-7/+2
| | | | AC::Metal::ParamsWrapper
* load active_support/core_ext/class/attribute in active_support/railsXavier Noria2012-08-021-1/+0
|
* Show in log correct wrapped keysDmitry Vorotilin2012-05-201-1/+2
|
* Use Hash#fetch instead of has_key? checkCarlos Antonio da Silva2012-05-041-1/+1
|
* Merge pull request #4445 from nragaz/role_based_params_wrappingJosé Valim2012-05-041-2/+3
| | | | specify a role for identifying accessible attributes when wrapping params
* More using <tt>x</tt> instead of +x+ when the latter renders improperly.Mark Rushakoff2012-04-271-1/+1
|
* Use <tt>Foo::Bar</tt> instead of +Foo::Bar+Mark Rushakof2012-04-271-1/+1
| | | | | | | | The latter doesn't render as code in HTML output. Regex used in Rubymine to locate the latter form: (\+)(:*\w+:(?::|\w)+)(\+)
* Change more Array.wrap to Kernel#ArrayRafael Mendonça França2012-01-051-6/+5
|
* ParamsWrapper only wrap the accessible attributes when they were setJean-Francois Turcot2011-12-071-1/+8
|
* use classify in ParamsWrapper to derive model name from controller namelest2011-12-051-1/+1
|
* Use safe_constantize where possible.José Valim2011-09-231-6/+3
|
* doc fixesVijay Dev2011-08-281-8/+8
|
* params wrapper docs correctionVijay Dev2011-08-211-4/+3
|
* Use lazy load hooks to set parameter wrapping configuration. This means that ↵Jon Leighton2011-08-161-2/+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/+2
| | | | use config object instead. Cuts about 15% off the load time. (#734)
* some grammatical correctionsVijay Dev2011-06-041-3/+3
|
* renamed the wrap_parameters :only and :except options to :include and ↵Josh Kalderimis2011-05-191-17/+17
| | | | :exclude to make it consistent with controller filters
* Use anonymous? that works on both Ruby 1.8 and 1.9.José Valim2011-05-171-2/+3
|
* add more robust test for wrapping params with anonymous classDavid Chelimsky2011-05-171-2/+1
|
* Add fix for error when an anonymous controller subclasses ApplicationControllerAndy Lindeman2011-05-171-1/+4
|
* Make ParamsWrapper calling newly introduced `Model.attribute_names` instead ↵Prem Sichanugrist2011-05-151-3/+3
| | | | of `.column_names`
* Do not try to call `column_names` on the abstract class.Prem Sichanugrist2011-05-151-1/+1
| | | 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-5/+13
| | | | raising NameError, closes #477.
* Ensure params wrapper settings are not inherited and calculated each time.José Valim2011-05-061-1/+1
|
* More performance optimizations.José Valim2011-05-031-13/+17
|
* Improve performance for filtered parameters and add tests.José Valim2011-05-031-3/+2
|
* Move most processing to load time for performance and improve test suite.José Valim2011-05-031-25/+49
|
* Fix ParamsWrapper docs errorsSebastian Martinez2011-05-021-2/+2
|
* Add `ActionController::ParamsWrapper` to wrap parameters into a nested hashPrem Sichanugrist2011-05-031-0/+197
This will allow us to do a rootless JSON/XML request to server.