Class: Auth::CustomerInvitationsController

Inherits:
Devise::InvitationsController
  • Object
show all
Defined in:
app/controllers/auth/customer_invitations_controller.rb

Overview

Controller: customer invitations.

Instance Method Summary collapse

Instance Method Details

#after_accept_path_for(_resource) ⇒ Object (protected)



16
17
18
# File 'app/controllers/auth/customer_invitations_controller.rb', line 16

def after_accept_path_for(_resource)
  @return_path || 
end

#qualify_customerObject (protected)



20
21
22
23
24
# File 'app/controllers/auth/customer_invitations_controller.rb', line 20

def qualify_customer
  return unless @account.fully_enabled?

  @context_user.qualify_lead
end

#set_report_errors_forObject (protected)

This controller instance set the model to use for detecting errors in the application_controller#write_flash_to_cookie method.



12
13
14
# File 'app/controllers/auth/customer_invitations_controller.rb', line 12

def set_report_errors_for
  @report_errors_for = [resource]
end