Class: Decidim::OnboardingActionMessageCell
- Inherits:
-
ViewModel
- Object
- ViewModel
- Decidim::OnboardingActionMessageCell
- Includes:
- ActiveLinkTo, ActiveLinkToHelper
- Defined in:
- app/cells/decidim/onboarding_action_message_cell.rb
Overview
This cell renders an announcement of pending onboarding action if exists for a user
The model is expected to be a user
Instance Method Summary collapse
Methods included from ActiveLinkToHelper
Instance Method Details
#show ⇒ Object
15 16 17 18 19 20 21 22 23 24 |
# File 'app/cells/decidim/onboarding_action_message_cell.rb', line 15 def show return if is_active_link?(onboarding_path) return unless onboarding_manager.valid? return unless onboarding_manager.pending_action? return if == :unauthorized return if return if render :show end |