Class: Workado::InvitationsController
- Inherits:
-
BaseController
- Object
- ApplicationController
- BaseController
- Workado::InvitationsController
- Defined in:
- app/controllers/workado/invitations_controller.rb
Instance Method Summary collapse
Instance Method Details
#accept ⇒ Object
3 4 5 6 7 |
# File 'app/controllers/workado/invitations_controller.rb', line 3 def accept workspace_user = WorkspaceUser.find_by(acceptable_token: params[:token]) workspace_user.accept! redirect_to(Workado.after_accept_path.call) end |