Class: Decidim::Assemblies::ContentBlocks::HighlightedAssembliesCell
- Inherits:
-
ContentBlocks::HighlightedParticipatorySpacesCell
- Object
- ContentBlocks::HighlightedParticipatorySpacesCell
- Decidim::Assemblies::ContentBlocks::HighlightedAssembliesCell
- Defined in:
- app/cells/decidim/assemblies/content_blocks/highlighted_assemblies_cell.rb
Instance Method Summary collapse
Instance Method Details
#all_path ⇒ Object
17 18 19 |
# File 'app/cells/decidim/assemblies/content_blocks/highlighted_assemblies_cell.rb', line 17 def all_path Decidim::Assemblies::Engine.routes.url_helpers.assemblies_path end |
#highlighted_spaces ⇒ Object
7 8 9 10 11 |
# File 'app/cells/decidim/assemblies/content_blocks/highlighted_assemblies_cell.rb', line 7 def highlighted_spaces @highlighted_spaces ||= OrganizationPrioritizedAssemblies .new(current_organization, current_user) .query end |
#i18n_scope ⇒ Object
13 14 15 |
# File 'app/cells/decidim/assemblies/content_blocks/highlighted_assemblies_cell.rb', line 13 def i18n_scope "decidim.assemblies.pages.home.highlighted_assemblies" end |
#max_results ⇒ Object
21 22 23 |
# File 'app/cells/decidim/assemblies/content_blocks/highlighted_assemblies_cell.rb', line 21 def max_results model.settings.max_results end |