diff options
Diffstat (limited to 'app/controllers/invitations_controller.rb')
| -rw-r--r-- | app/controllers/invitations_controller.rb | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/app/controllers/invitations_controller.rb b/app/controllers/invitations_controller.rb new file mode 100644 index 000000000..97e5352e4 --- /dev/null +++ b/app/controllers/invitations_controller.rb @@ -0,0 +1,21 @@ +class InvitationsController < Devise::InvitationsController + + def update + if this + redirect_to organisation_path + else + super + end + end + + protected + + def invite_params + params.require(:user).permit(:name, :email ) + end + + def update_resource_params + params.require(:user).permit(:name, :email, :password, :password_confirmation, :invitation_token) + end + +end |
