Class: Account::ApplicationController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Account::ApplicationController
- Includes:
- Controllers::Base
- Defined in:
- app/controllers/account/application_controller.rb
Direct Known Subclasses
InvitationsController, MembershipsController, Onboarding::InvitationListsController, Onboarding::UserDetailsController, Onboarding::UserEmailController, TeamsController, TwoFactorsController, UsersController
Instance Method Summary collapse
Instance Method Details
#ensure_onboarding_is_complete ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'app/controllers/account/application_controller.rb', line 4 def ensure_onboarding_is_complete # First check that Bullet Train doesn't have any onboarding steps it needs to enforce. return false unless super # Most onboarding steps you'll add should be skipped if the user is adding a team or accepting an invitation ... unless adding_team? || accepting_invitation? # So, if you have new onboarding steps to check for an enforce, do that here: end # Finally, if we've gotten this far, then onboarding appears to be complete! true end |