mononoken / fae-scribe

0 stars 0 forks source link

Refactor Invitation#accept for setting Membership role #54

Open mononoken opened 1 year ago

mononoken commented 1 year ago

app/models/invitation.rb

Invitation#accept currently sets Membership role as member as a default. This feels a little off to me, like this responsibility should not lie here.

I have considered also that perhaps the Invitation should also have a role. That way, a user inviting another user can set a role for the person if they choose to accept. In that case, the role should be set equal to whatever the Invitation role is.