-
-
Notifications
You must be signed in to change notification settings - Fork 300
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow multiple base controller classes to be set
This changes the `base_controller_class` configuration option to also accept an array of class names, so that the custom payload is appended in multiple controller base classes. Why? Because some applications have controllers that inherit from multiple base classes. Example: `ActionController::API` and `ActionController::Base`. If you have an an application with an API and also an admin panel, that would certainly be the case. Until now, using a custom payload was only possible in the controllers that inherit from the configured `base_controller_class`. With this change, the custom payload feature can be used in all controllers -- if their base classes are set.
- Loading branch information
Showing
3 changed files
with
35 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters