Permalink
Browse files

Merge pull request #199 from kreeger/use-active-support-on-load

Using ActiveSupport#on_load instead of send :include to boot.
  • Loading branch information...
2 parents d854a6f + d9311c5 commit 2e741d45a2fbd80646351cd7f7440322765a9fcc @jeremy jeremy committed Apr 28, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/action_controller/parameters.rb
@@ -265,4 +265,4 @@ def params=(val)
end
end
-ActionController::Base.send :include, ActionController::StrongParameters
+ActiveSupport.on_load(:action_controller) { include ActionController::StrongParameters }

0 comments on commit 2e741d4

Please sign in to comment.