-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Missing route name on aliased CRUD actions #34
Comments
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?
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! |
# Issue Fixes #34. # Overview This PR fixes an issue where Chusaku doesn't annotate a name for a route even when its path has one.
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: 🤔The text was updated successfully, but these errors were encountered: