Class: Decidim::ProcessGroupsContentBlock::ContentBlocks::HighlightedProcessGroupsCell
- Inherits:
-
ViewModel
- Object
- ViewModel
- Decidim::ProcessGroupsContentBlock::ContentBlocks::HighlightedProcessGroupsCell
- Includes:
- ApplicationHelper, LayoutHelper, SanitizeHelper
- Defined in:
- app/cells/decidim/process_groups_content_block/content_blocks/highlighted_process_groups_cell.rb
Instance Method Summary collapse
- #decidim_participatory_processes ⇒ Object
- #highlighted_groups ⇒ Object
- #i18n_scope ⇒ Object
- #show ⇒ Object
Instance Method Details
#decidim_participatory_processes ⇒ Object
28 29 30 |
# File 'app/cells/decidim/process_groups_content_block/content_blocks/highlighted_process_groups_cell.rb', line 28 def decidim_participatory_processes Decidim::ParticipatoryProcesses::Engine.routes.url_helpers end |
#highlighted_groups ⇒ Object
18 19 20 21 22 |
# File 'app/cells/decidim/process_groups_content_block/content_blocks/highlighted_process_groups_cell.rb', line 18 def highlighted_groups OrganizationActiveParticipatoryProcessGroups .new(current_organization) .query end |
#i18n_scope ⇒ Object
24 25 26 |
# File 'app/cells/decidim/process_groups_content_block/content_blocks/highlighted_process_groups_cell.rb', line 24 def i18n_scope "decidim.process_groups_content_block.pages.home.highlighted_process_groups" end |
#show ⇒ Object
14 15 16 |
# File 'app/cells/decidim/process_groups_content_block/content_blocks/highlighted_process_groups_cell.rb', line 14 def show render if highlighted_groups.any? end |