Class: Decidim::EnhancedTextwork::HighlightedParagraphsForComponentCell

Inherits:
ViewModel
  • Object
show all
Includes:
ComponentPathHelper
Defined in:
app/cells/decidim/enhanced_textwork/highlighted_paragraphs_for_component_cell.rb

Overview

This cell renders the highlighted paragraphs for a given component. It is intended to be used in the `participatory_space_highlighted_elements` view hook.

Instance Method Summary collapse

Instance Method Details

#showObject



13
14
15
# File 'app/cells/decidim/enhanced_textwork/highlighted_paragraphs_for_component_cell.rb', line 13

def show
  render unless paragraphs_count.zero?
end