You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the case where users have multiple engines in their routes file, the built-in Rails generator helper, route, will add the route to all of the engines. It should only be appending the route once.
I believe this is due to the helper's reliance on gsub and their use of routes.draw do instead of Rails.application.routes.draw do, since the former will result in false positives.
In the case where users have multiple engines in their routes file, the built-in Rails generator helper,
route
, will add the route to all of the engines. It should only be appending the route once.I believe this is due to the helper's reliance on
gsub
and their use ofroutes.draw do
instead ofRails.application.routes.draw do
, since the former will result in false positives.Relevant links:
route
helper APIroute
helper source code I've linked directly to what I believe is the line, the definition ofsentinel
which uses a regex that is too looseinject_into_file
API (used by theroute_helper
)inject_into_file
sourceThe text was updated successfully, but these errors were encountered: