Skip to content

Commit 2e741d4

Browse files
committed
Merge pull request rails#199 from kreeger/use-active-support-on-load
Using ActiveSupport#on_load instead of send :include to boot.
2 parents d854a6f + d9311c5 commit 2e741d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/action_controller/parameters.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,4 +265,4 @@ def params=(val)
265265
end
266266
end
267267

268-
ActionController::Base.send :include, ActionController::StrongParameters
268+
ActiveSupport.on_load(:action_controller) { include ActionController::StrongParameters }

0 commit comments

Comments
 (0)