mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
fc61bca31d
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.
352 B
352 B
-
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 for previous changes.