Class: Decidim::Budgets::BudgetsListCell

Inherits:
BaseCell
  • Object
show all
Includes:
Cell::ViewModel::Partial, CellsPaginateHelper, Orderable, OrdersHelper
Defined in:
app/cells/decidim/budgets/budgets_list_cell.rb

Overview

This cell renders the budgets list of a Budget component

Constant Summary collapse

AVAILABLE_ORDERS =
%w(random highest_cost lowest_cost).freeze

Instance Method Summary collapse

Methods inherited from BaseCell

#budgets_link_list

Instance Method Details

#main_listObject



25
# File 'app/cells/decidim/budgets/budgets_list_cell.rb', line 25

def main_list = render

#showObject



19
20
21
22
23
# File 'app/cells/decidim/budgets/budgets_list_cell.rb', line 19

def show
  return unless budgets

  render
end