rails/strong_parameters — pull request #144 by kreeger (2013-05-21 21:02:43+00:00)
Title: Using ActiveSupport#on_load instead of send :require to boot.

This is similar to a [pull request I made][1] a while back on another project that included itself onto `ActionController`. In order for this to work on the `rails-api` gem, which doesn't use `ActionController::Base`, the method for including the `ActionController::StrongParameters` module has changed.

``` ruby
# instead of...
ActionController::Base.send :include, ActionController::StrongParameters
# let's use...
ActiveSupport.on_load(:action_controller) { include ActionController::StrongParameters }
```

[1]: https://github.com/plataformatec/has_scope/pull/31/files