Class: Decidim::Problems::ProblemCell

Inherits:
ViewModel
  • Object
show all
Includes:
Cell::ViewModel::Partial, ProblemCellsHelper, SanitizeHelper
Defined in:
app/cells/decidim/problems/problem_cell.rb

Overview

This cell renders the problem card for an instance of a problem the default size is the Medium Card (:m)

Instance Method Summary collapse

Methods included from ProblemCellsHelper

#current_component

Instance Method Details

#card_sizeObject



16
17
18
# File 'app/cells/decidim/problems/problem_cell.rb', line 16

def card_size
  "decidim/problems/problem_g"
end

#showObject



12
13
14
# File 'app/cells/decidim/problems/problem_cell.rb', line 12

def show
  cell card_size, model, options
end