diff options
author | Alberto Almagro <alberto.almagro@rakuten.com> | 2017-08-03 22:20:52 +0200 |
---|---|---|
committer | Alberto Almagro <alberto.almagro@rakuten.com> | 2017-08-14 23:56:13 +0200 |
commit | 7fade3dcbcfc1f5ba6c455c04f04040f077e0d70 (patch) | |
tree | c96468d7917bcf00c578af678c6f43f3037f5ab0 /activesupport/test/lazy_load_hooks_test.rb | |
parent | 10bf93ef92a70ae511036134290bf0e2de184b5c (diff) | |
download | rails-7fade3dcbcfc1f5ba6c455c04f04040f077e0d70.tar.gz rails-7fade3dcbcfc1f5ba6c455c04f04040f077e0d70.tar.bz2 rails-7fade3dcbcfc1f5ba6c455c04f04040f077e0d70.zip |
Load Parameters configurations on :action_controller only once
Fixes regression ActionController::UnpermittedParameters not raised. The inner hook was being executed twice, once when ActionController::Base was loaded and again when ActionController::API was loaded. As options.delete operations inside the block are not idempotent, the second time it was run there was no configuration option available
Diffstat (limited to 'activesupport/test/lazy_load_hooks_test.rb')
0 files changed, 0 insertions, 0 deletions