Class: Kiqr::Users::InvitationsController
- Inherits:
-
KiqrController
- Object
- KiqrController
- Kiqr::Users::InvitationsController
- Defined in:
- app/controllers/kiqr/users/invitations_controller.rb
Instance Method Summary collapse
Instance Method Details
#accept_invitation ⇒ Object
9 10 11 12 13 |
# File 'app/controllers/kiqr/users/invitations_controller.rb', line 9 def accept_invitation @member.accept_invitation_for_user(current_user.id) (:success, :accepted_invitation) redirect_to dashboard_path(account_id: @account) end |
#decline_invitation ⇒ Object
15 16 17 18 19 |
# File 'app/controllers/kiqr/users/invitations_controller.rb', line 15 def decline_invitation @member.decline_invitation (:notice, :declined_invitation, account_name: @account.name) redirect_to dashboard_path end |
#show ⇒ Object
5 6 7 |
# File 'app/controllers/kiqr/users/invitations_controller.rb', line 5 def show @invitation_token = @member.invitation_token end |