- 29 5月, 2016 1 次提交
-
-
由 Christian Wesselhoeft 提交于
This example code wasn't getting wrapped in a `<code>` tag due to incorrect indentation.
-
- 28 5月, 2016 1 次提交
-
-
由 yuuji.yaginuma 提交于
-
- 01 5月, 2016 1 次提交
-
-
由 Tom Kadwill 提交于
-
- 15 4月, 2016 1 次提交
-
-
由 Sean Griffin 提交于
This brings the behavior more inline with other similar cases, such as receiving a hash when an array of scalars was expected. Prior to this commit, the key would be present, but the value would be `nil`
-
- 24 3月, 2016 1 次提交
-
-
由 Prathamesh Sonpatki 提交于
- Added missing `"`.
-
- 13 3月, 2016 1 次提交
-
-
由 Bart de Water 提交于
Add explanation about accepts_nested_attributes_for keys in the strong parameters documentation [skip ci]
-
- 12 3月, 2016 1 次提交
-
-
由 Gaurish Sharma 提交于
[ci-skip]
-
- 10 3月, 2016 2 次提交
-
-
由 yuuji.yaginuma 提交于
-
由 Sean Griffin 提交于
This method will only be added when used with Ruby 2.3.0 or greater. This method has the same behavior as `Hash#dig`, except it will convert hashes to `ActionController::Parameters`, similar to `#[]` and `#fetch`.
-
- 24 2月, 2016 1 次提交
-
-
由 Prathamesh Sonpatki 提交于
- Fixes #23822.
-
- 19 2月, 2016 2 次提交
-
-
由 Benjamin Quorning 提交于
-
由 Benjamin Quorning 提交于
Creating a protected getter method for `@parameters`.
-
- 18 2月, 2016 1 次提交
-
-
由 Aaron Patterson 提交于
While iterating an AC::Parameters object, the object will mutate itself and stick AC::Parameters objects where there used to be hashes: https://github.com/rails/rails/blob/f57092ad728fa1de06c4f5fd9d09dcc2c4738fd9/actionpack/lib/action_controller/metal/strong_parameters.rb#L632 If you use `permit` after this iteration, the `fields_for_style` method wouldn't return true because the child objects are now AC::Parameters objects rather than Hashes. fixes #23701
-
- 17 2月, 2016 1 次提交
-
-
由 Benjamin Quorning 提交于
Now that AC::Parameters is no longer a Hash, it shouldn't look like a hash.
-
- 15 2月, 2016 1 次提交
-
-
由 Ryuta Kamizono 提交于
`NEVER_UNPERMITTED_PARAMS` is deprecated in Rails 4.2. See #15933.
-
- 28 1月, 2016 1 次提交
-
-
由 Marek 提交于
and remove unecessary spaces in string interpolation.
-
- 22 1月, 2016 1 次提交
-
-
由 Jon Moss 提交于
See bug #21032.
-
- 20 1月, 2016 3 次提交
- 13 1月, 2016 1 次提交
-
-
由 claudiob 提交于
Fixes #23026 See discussion at #23026
-
- 12 1月, 2016 1 次提交
-
-
由 Akira Matsuda 提交于
-
- 31 12月, 2015 1 次提交
-
-
由 Prathamesh Sonpatki 提交于
- AC::Parameters#convert_parameters_to_hashes should return filtered or unfiltered values based on whether it is called from `to_h` or `to_unsafe_h` instead of always defaulting to `to_h`. - Fixes #22841
-
- 30 12月, 2015 1 次提交
-
-
由 Justin Coyne 提交于
Fixes #22818
-
- 18 12月, 2015 1 次提交
-
-
由 Kasper Timm Hansen 提交于
When calling `to_h` on an `ActionController::Parameters` instance it would `deep_dup` its internal parameters. This inadvertently called `dup` on a passed Active Record model which would create new models. Fix by only dupping Ruby's Arrays and Hashes.
-
- 14 12月, 2015 1 次提交
-
-
由 Prem Sichanugrist 提交于
This makes these two methods to be more inline with the previous behavior of Parameters as Parameters used to be inherited from HWIA. Fixes #21391
-
- 05 12月, 2015 1 次提交
-
-
由 claudiob 提交于
The file [references Rack::Test here](https://github.com/rails/rails/blame/master/actionpack/lib/action_controller/metal/strong_parameters.rb#L671) so it's better off requiring 'rack/test' in the first place.
-
- 28 9月, 2015 1 次提交
-
-
由 Ronak Jangir 提交于
-
- 11 9月, 2015 1 次提交
-
-
由 claudiob 提交于
AC::Parameters does not inherit from HashWithIndifferentAccess since #20868 by @sikachu
-
- 29 8月, 2015 3 次提交
-
-
由 Xavier Noria 提交于
-
由 Xavier Noria 提交于
-
由 Xavier Noria 提交于
References #19565.
-
- 28 8月, 2015 2 次提交
-
-
由 Xavier Noria 提交于
* A string in the example lacked quotes. * The tests asserted stuff about :last_name, whereas test params do not have that key. * But, the first one passed, why? After hitting my head against the wall and doing some obscure rituals realized the new #require had an important typo, wanted to iterate over the array argument (key), but it ran over its own hash keys (method #keys). * Modified the test to prevent the same typo to happen again. * The second test assigned to an unused variable safe_params that has been therefore removed. * Grammar of the second test description. * Since I was on it, reworded both test descriptions.
-
由 Gaurish Sharma 提交于
This PR adds ability to accept arrays which allows you to require multiple values in one method. so instead of this: ```ruby params.require(:person).require(:first_name) params.require(:person).require(:last_name) ``` Here it will be one line for each params, so say if I require 10params, it will be 10lines of repeated code which is not dry. So I have added new method which does this in one line: ```ruby params.require(:person).require([:first_name, :last_name]) ``` Comments welcome
-
- 17 8月, 2015 1 次提交
-
-
由 Jon Atack 提交于
-
- 22 7月, 2015 2 次提交
-
-
由 Aaron Patterson 提交于
there is no reason to `convert_hashes_to_parameters` with an assignemt flag. The caller knows whether or not it wants the value assigned. We should just change the uncommon case (not writing to the underlying hash) to just call the conversion method and return that value.
-
由 Aaron Patterson 提交于
only hashes are converted to parameter objects, so lets add a branch for them. This also removes a is_a? test for Parameters so we can be abstracted from the class.
-
- 19 7月, 2015 1 次提交
-
-
由 Roque Pinel 提交于
When executing an `ActionController::Parameters#fetch` with a block that raises a `KeyError` the raised `KeyError` will be rescued and converted to an `ActionController::ParameterMissing` exception, covering up the original exception. [Jonas Schubert Erlandsson & Roque Pinel]
-
- 18 7月, 2015 2 次提交
-
-
由 Aaron Patterson 提交于
this way we don't need to call `to_unsafe_h` to get access to ask questions about the underlying hash
-
由 Aaron Patterson 提交于
now `hash_filter` doesn't need to know about the `Parameters` class
-