In the invitation mail I can see method that generates acceptation link:
accept_invitation_url(@resource, invitation_token: @token)
and I'd like to know how to edit(or override) this method so I can put there my custom route. I have seen some similar threads, but most of them are outdated or don't provide any working solutions.
Can someone explain me how does it work?