diff options
author | Rafael Chacón <rafaelchacon@gmail.com> | 2014-06-27 13:08:40 -0700 |
---|---|---|
committer | Rafael Chacón <rafaelchacon@gmail.com> | 2014-06-27 13:08:40 -0700 |
commit | 58399e1dc3e40b0f6cf8f5da31d694267afdf328 (patch) | |
tree | a532ecae661ba53d9fc202f84f1d085f2fc3beca /actionpack/lib/action_controller/metal | |
parent | c197a7dc418cd4fe07131a41a44c8ddb66258801 (diff) | |
download | rails-58399e1dc3e40b0f6cf8f5da31d694267afdf328.tar.gz rails-58399e1dc3e40b0f6cf8f5da31d694267afdf328.tar.bz2 rails-58399e1dc3e40b0f6cf8f5da31d694267afdf328.zip |
Improvements per code review.
* General style fixes.
* Add changes to configuration guide.
* Add missing tests.
Diffstat (limited to 'actionpack/lib/action_controller/metal')
-rw-r--r-- | actionpack/lib/action_controller/metal/strong_parameters.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/actionpack/lib/action_controller/metal/strong_parameters.rb b/actionpack/lib/action_controller/metal/strong_parameters.rb index 71dca877b6..45d819c29a 100644 --- a/actionpack/lib/action_controller/metal/strong_parameters.rb +++ b/actionpack/lib/action_controller/metal/strong_parameters.rb @@ -105,11 +105,10 @@ module ActionController # params are present. The default includes both 'controller' and 'action' # because they are added by Rails and should be of no concern. One way # to change these is to specify `always_permitted_parameters` in your - # config, e.g. - # `config.always_permitted_parameters = %w( controller action format )` - + # config. For instance: + # + # config.always_permitted_parameters = %w( controller action format ) cattr_accessor :always_permitted_parameters - self.always_permitted_parameters = %w( controller action ) def self.const_missing(const_name) |