Closed vlad-pisanov closed 11 months ago
Thanks for reporting this, @vlad-pisanov! I was able to reproduce what you described, and it does indeed seem to be a bug. I'll spend more time on this and will keep this thread updated.
@vlad-pisanov would you mind giving this potential fix a try?
Change your Gemfile so you're temporarily pointing to the fix branch:
gem "chusaku", git: "https://github.com/nshki/chusaku.git", branch: "fix/missing-route-names", require: false
bundle install
.bundle exec chusaku
.Does that give expected output?
@nshki it works! 🙌 No regressions either (tested on a very large codebase with thousands of routes)
Fantastic! Thanks for verifying. 😄 Will be releasing a patch shortly!
Consider this routing (
update
is aliased aschange
):Chusaku annotates the
update
action like so (change_invitation
is present, but the standardinvitation
is missing):Strangely, if I change it to
resources :invitations, only: [:update]
, everything works as expected: 🤔