Class: Decidim::Budgets::ProjectVotedHintCell

Inherits:
BaseCell
  • Object
show all
Defined in:
app/cells/decidim/budgets/project_voted_hint_cell.rb

Overview

This cell renders a checkmark with a text.

Instance Method Summary collapse

Methods inherited from BaseCell

#budgets_link_list

Instance Method Details

#showObject



9
10
11
12
13
# File 'app/cells/decidim/budgets/project_voted_hint_cell.rb', line 9

def show
  return unless voted_for?(model)

   :span, safe_join(hint), class: css_class
end