Class: Auth::CustomerInvitationsController
- Inherits:
-
Devise::InvitationsController
- Object
- Devise::InvitationsController
- Auth::CustomerInvitationsController
- Defined in:
- app/controllers/auth/customer_invitations_controller.rb
Overview
Controller: customer invitations.
Instance Method Summary collapse
- #after_accept_path_for(_resource) ⇒ Object protected
- #qualify_customer ⇒ Object protected
-
#set_report_errors_for ⇒ Object
protected
This controller instance set the model to use for detecting errors in the application_controller#write_flash_to_cookie method.
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 || my_account_path end |
#qualify_customer ⇒ Object (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_for ⇒ Object (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 |