Closed zachingle closed 2 years ago
Found this bug when upgrading the good_job gem which has an engine which uses redirects in its routes, more specifically, redirects with named arguments.
These also didn't appear under the /good_job path:
/good_job
Unused routes (2): / /jobs/mass_update(.:format)
This PR updates the collect_routes method to ignore ActionDispatch::Routing::OptionRedirect routes, which are created when using redirects with named arguments
collect_routes
ActionDispatch::Routing::OptionRedirect
@ZachIngle Thank you!
@amatsuda When will this be released?
Found this bug when upgrading the good_job gem which has an engine which uses redirects in its routes, more specifically, redirects with named arguments.
These also didn't appear under the
/good_job
path:This PR updates the
collect_routes
method to ignoreActionDispatch::Routing::OptionRedirect
routes, which are created when using redirects with named arguments