aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/parameters/always_permitted_parameters_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Return super in ActionController::Parameters.const_missingShuhei Kagawa2015-03-281-1/+8
| | | | | | | | | | | | | | | | | | | | | The current implementation of ActionController::Parameters.const_missing returns `ActionController::Parameters.always_permitted_parameters` even if its `super` returns a constant without raising error. This prevents its subclass in a autoloading module/class from taking advantage of autoloading constants. class SomeParameters < ActionController::Parameters def do_something DefinedSomewhere.do_something end end In the code above, `DefinedSomewhere` is to be autoloaded with `Module.const_missing` but `ActionController::Parameters.const_missing` returns `always_permitted_parameters` instead of the autoloaded constant. This pull request fixes the issue respecting `const_missing`'s `super`.
* Improvements per code review.Rafael Chacón2014-06-271-0/+29
* General style fixes. * Add changes to configuration guide. * Add missing tests.