diff options
author | Vipul A M <vipulnsward@gmail.com> | 2017-03-13 23:00:52 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-13 23:00:52 +0530 |
commit | e0397b0c25e790eba0c914d9ff97360219f49e29 (patch) | |
tree | 3f9dcdc1a7feba48284123191124947c7703cd7d /actionpack/lib/action_controller/metal/params_wrapper.rb | |
parent | a5746cb4ecc524f465ff305d1ff5d5b85c05fd53 (diff) | |
parent | b383b346600d5325a211376837bc83b7ae472f46 (diff) | |
download | rails-e0397b0c25e790eba0c914d9ff97360219f49e29.tar.gz rails-e0397b0c25e790eba0c914d9ff97360219f49e29.tar.bz2 rails-e0397b0c25e790eba0c914d9ff97360219f49e29.zip |
Merge pull request #28381 from shime/docs-action-controller-base
[docs] fix ActionController docs
Diffstat (limited to 'actionpack/lib/action_controller/metal/params_wrapper.rb')
-rw-r--r-- | actionpack/lib/action_controller/metal/params_wrapper.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/actionpack/lib/action_controller/metal/params_wrapper.rb b/actionpack/lib/action_controller/metal/params_wrapper.rb index 7fc898f034..3cca5e8906 100644 --- a/actionpack/lib/action_controller/metal/params_wrapper.rb +++ b/actionpack/lib/action_controller/metal/params_wrapper.rb @@ -213,7 +213,7 @@ module ActionController end # Sets the default wrapper key or model which will be used to determine - # wrapper key and attribute names. Will be called automatically when the + # wrapper key and attribute names. Called automatically when the # module is inherited. def inherited(klass) if klass._wrapper_options.format.any? @@ -225,7 +225,7 @@ module ActionController end end - # Performs parameters wrapping upon the request. Will be called automatically + # Performs parameters wrapping upon the request. Called automatically # by the metal call stack. def process_action(*args) if _wrapper_enabled? @@ -238,11 +238,11 @@ module ActionController wrapped_keys = request.request_parameters.keys wrapped_filtered_hash = _wrap_parameters request.filtered_parameters.slice(*wrapped_keys) - # This will make the wrapped hash accessible from controller and view + # This will make the wrapped hash accessible from controller and view. request.parameters.merge! wrapped_hash request.request_parameters.merge! wrapped_hash - # This will display the wrapped hash in the log file + # This will display the wrapped hash in the log file. request.filtered_parameters.merge! wrapped_filtered_hash end super |