Class: Auth::CustomerInvitationsController
- Inherits:
-
Devise::InvitationsController
- Object
- Devise::InvitationsController
- Auth::CustomerInvitationsController
- Defined in:
- app/controllers/auth/customer_invitations_controller.rb
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)
15 16 17 |
# File 'app/controllers/auth/customer_invitations_controller.rb', line 15 def after_accept_path_for(resource) @return_path || my_account_path end |
#qualify_customer ⇒ Object (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_for ⇒ Object (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 |