Class: Decidim::ParticipatoryProcesses::ProcessesCell

Inherits:
ViewModel
  • Object
show all
Includes:
CardHelper
Defined in:
app/cells/decidim/participatory_processes/processes_cell.rb

Overview

This cell renders a list of processes

Instance Method Summary collapse

Instance Method Details

#show_all_pathObject



15
16
17
# File 'app/cells/decidim/participatory_processes/processes_cell.rb', line 15

def show_all_path
  @show_all_path ||= options[:show_all_path]
end

#titleObject



19
20
21
# File 'app/cells/decidim/participatory_processes/processes_cell.rb', line 19

def title
  options[:title] || t("related_processes", scope: "decidim.participatory_processes.show")
end

#total_countObject



11
12
13
# File 'app/cells/decidim/participatory_processes/processes_cell.rb', line 11

def total_count
  @total_count ||= options[:total_count] || processes.size
end