Class: Decidim::Assemblies::ContentBlocks::HighlightedAssembliesCell

Inherits:
ContentBlocks::HighlightedParticipatorySpacesCell
  • Object
show all
Defined in:
app/cells/decidim/assemblies/content_blocks/highlighted_assemblies_cell.rb

Instance Method Summary collapse

Instance Method Details

#all_pathObject



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_spacesObject



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_scopeObject



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_resultsObject



21
22
23
# File 'app/cells/decidim/assemblies/content_blocks/highlighted_assemblies_cell.rb', line 21

def max_results
  model.settings.max_results
end