Class: Decidim::Posts::ReactionMenuCell
- Inherits:
-
ViewModel
- Object
- ViewModel
- Decidim::Posts::ReactionMenuCell
show all
- Includes:
- Cell::ViewModel::Partial, PostCellsHelper, ReactionHelper
- Defined in:
- app/cells/decidim/posts/reaction_menu_cell.rb
Instance Method Summary
collapse
#reaction_icon
#component_settings, #current_component, #current_settings, #participatory_space
#category_label, #category_label_singular, #posts_component_for_meeting
Instance Method Details
#post ⇒ Object
16
17
18
|
# File 'app/cells/decidim/posts/reaction_menu_cell.rb', line 16
def post
model
end
|
#reaction_types ⇒ Object
20
21
22
|
# File 'app/cells/decidim/posts/reaction_menu_cell.rb', line 20
def reaction_types
ReactionType.order(:position)
end
|
#show ⇒ Object
8
9
10
|
# File 'app/cells/decidim/posts/reaction_menu_cell.rb', line 8
def show
render :show
end
|
#styles ⇒ Object
12
13
14
|
# File 'app/cells/decidim/posts/reaction_menu_cell.rb', line 12
def styles
render :styles
end
|