Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correctly hook on Action Controller (#338)
When an initializer load the `ActionController::Base` constant all the on_load triggers for `:action_controller` are executed. This cause a lot of load order issues. Gems should always use `ActiveSupport.on_load` to extent behavior of the Rails frameworks. Also using `ActiveSupport.on_load(:action_controller)` we can make sure that both `ActionController::Base` and `ActionController::Api` are extended.
- Loading branch information