Class: Decidim::Posts::ReactionMenuCell

Inherits:
ViewModel
  • Object
show all
Includes:
Cell::ViewModel::Partial, PostCellsHelper, ReactionHelper
Defined in:
app/cells/decidim/posts/reaction_menu_cell.rb

Instance Method Summary collapse

Methods included from ReactionHelper

#reaction_icon

Methods included from PostCellsHelper

#component_settings, #current_component, #current_settings, #participatory_space

Methods included from ApplicationHelper

#category_label, #category_label_singular, #posts_component_for_meeting

Instance Method Details

#postObject



16
17
18
# File 'app/cells/decidim/posts/reaction_menu_cell.rb', line 16

def post
  model
end

#reaction_typesObject



20
21
22
# File 'app/cells/decidim/posts/reaction_menu_cell.rb', line 20

def reaction_types
  ReactionType.order(:position)
end

#showObject



8
9
10
# File 'app/cells/decidim/posts/reaction_menu_cell.rb', line 8

def show
  render :show
end

#stylesObject



12
13
14
# File 'app/cells/decidim/posts/reaction_menu_cell.rb', line 12

def styles
  render :styles
end