invite user with roles

This commit is contained in:
Rahul 2019-07-22 14:11:46 +05:30
parent 770a63e15c
commit 804ebb455f
3 changed files with 29 additions and 4 deletions

View file

@ -18,4 +18,8 @@ module Invitation
end
end
end
def invite_via_email
User.invite!({ email: user_params[:email] }, current_user)
end
end