You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I dug into the code, and I noticed that you are only using devise_invitable to create the invite when someone accepts the invite created by this gem. This effectively causes the callbacks (such as before_invitation_created, after_invitation_created) provided devise_invitable to create side effects. For example, when a user accepts the invitation created by this gem then it would call hooks in before_invitation_created from devise_invitable which is unexpected.
The text was updated successfully, but these errors were encountered:
krue-doug
changed the title
An invitation isn't created when you use rails c
devise_invitable callbacks are made useless with this gem
Jun 13, 2018
I dug into the code, and I noticed that you are only using
devise_invitable
to create the invite when someone accepts the invite created by this gem. This effectively causes the callbacks (such asbefore_invitation_created
,after_invitation_created
) provided devise_invitable to create side effects. For example, when a user accepts the invitation created by this gem then it would call hooks inbefore_invitation_created
fromdevise_invitable
which is unexpected.The text was updated successfully, but these errors were encountered: