app/controllers/concerns/invitation/invites_helper.rb
# Override this if you want to do something more complicated for existing users.
# For example, if you have a more complex permissions scheme than just a simple
# has_many relationship, enable it here.
Override this if you want to do something more complicated for existing users.
For example, if you have a more complex permissions scheme than just a simple
has_many relationship, enable it here.
Override this if you want to do something more complicated for existing users . For example if you have a more complex permissions scheme than just a simple has_many relationship enable it here .
def after_invite_existing_user(invite)
      invite.invitable.add_invited_user(invite.recipient)
      invite.invitable.change_user_role(invite.recipient, invite.role) if invite.role.present?
    end
def after_invite_existing_user ( invite ) invite . invitable . add_invited_user ( invite . recipient ) invite . invitable . change_user_role ( invite . recipient , invite . role ) if invite . role . present? end
Override this if you want to do something more complicated for existing users.
Override this if you want to do something more complicated for existing users .
# Add the user to the invitable resource/organization
invite