forked from activeadmin/inherited_resources
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resource class priority system for namespaced controllers
Implemented a resource class priority system for namespaced controllers, for instance if you got a controller called: Admin::GroupController First priority for the resource will be the namespaced model, i.e.: Admin::Group Second priority for the resource is the camelcased model, i.e.: AdminGroup Otherwise it will use the controller's name, or fail with a TypeError, i.e.: Group
- Loading branch information
Showing
2 changed files
with
48 additions
and
0 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