Class: Decidim::Assemblies::ContentBlocks::RelatedAssembliesCell
- Inherits:
-
ContentBlocks::BaseCell
- Object
- ContentBlocks::BaseCell
- Decidim::Assemblies::ContentBlocks::RelatedAssembliesCell
- Defined in:
- app/cells/decidim/assemblies/content_blocks/related_assemblies_cell.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#related_assemblies ⇒ Object
11 12 13 14 15 16 |
# File 'app/cells/decidim/assemblies/content_blocks/related_assemblies_cell.rb', line 11 def @related_assemblies ||= resource .linked_participatory_space_resources(:assembly, "included_participatory_processes") .public_spaces end |
#show ⇒ Object
7 8 9 |
# File 'app/cells/decidim/assemblies/content_blocks/related_assemblies_cell.rb', line 7 def show render if total_count.positive? end |
#total_count ⇒ Object
18 19 20 |
# File 'app/cells/decidim/assemblies/content_blocks/related_assemblies_cell.rb', line 18 def total_count .size end |