Please sign in to comment.
Avoid namespacing routes inside engines
Since #11544, invoking the controller generator, any generated route is namespaced according to the class_path method. Since a mountable plugin is namespaced, creating a controller inside would generate a namespaced route based on the engine's name. The controller generator now relies on regular_class_path which does not contain the class hierarchy but the given path. Fixes #14079.
- Loading branch information...
Showing with 23 additions and 2 deletions.
|@@ -1 +1,10 @@|
|+* Avoid namespacing routes inside engines.|
|+ Mountable engines are namespaced by default so the generated routes|
|+ were too while they should not.|
|+ Fixes #14079.|
|+ *Yves Senn*, *Carlos Antonio da Silva*, *Robin Dupret*|
|Please check [4-1-stable](https://github.com/rails/rails/blob/4-1-stable/railties/CHANGELOG.md) for previous changes.|