Class: Auth::CustomerInvitationsController

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

Instance Method Summary collapse

Instance Method Details

#after_accept_path_for(resource) ⇒ Object (protected)



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

def after_accept_path_for(resource)
  @return_path || 
end

#qualify_customerObject (protected)



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

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.



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

def set_report_errors_for
  @report_errors_for = [resource]
end