mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
1b0526eaac
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`. |
||
---|---|---|
.. | ||
accessors_test.rb | ||
always_permitted_parameters_test.rb | ||
log_on_unpermitted_params_test.rb | ||
multi_parameter_attributes_test.rb | ||
mutators_test.rb | ||
nested_parameters_test.rb | ||
parameters_permit_test.rb | ||
raise_on_unpermitted_params_test.rb |