-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix generator path for namespaced models
Running a generator with a model that is namespaced, for example `Foo::Bar` puts the generated files in: - `app/controllers/admin/bars_controller.rb` - `app/dashboards/bar_dashboard.rb` The correct location is: - `app/controllers/admin/foo/bars_controller.rb` - `app/dashboards/foo/bar_dashboard.rb` This change ensures files are generated in the proper location. Without it the directory needs to be created and files need to be moved manually.
- Loading branch information
Showing
2 changed files
with
23 additions
and
2 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