Class: Decidim::Assemblies::ContentBlocks::ChildrenAssembliesCell
- Inherits:
-
RelatedAssembliesCell
- Object
- ContentBlocks::BaseCell
- RelatedAssembliesCell
- Decidim::Assemblies::ContentBlocks::ChildrenAssembliesCell
- Defined in:
- app/cells/decidim/assemblies/content_blocks/children_assemblies_cell.rb
Instance Method Summary collapse
Methods inherited from RelatedAssembliesCell
Instance Method Details
#related_assemblies ⇒ Object
7 8 9 |
# File 'app/cells/decidim/assemblies/content_blocks/children_assemblies_cell.rb', line 7 def @related_assemblies ||= resource.children.visible_for(current_user).published.order(weight: :asc) end |
#total_count ⇒ Object
11 12 13 |
# File 'app/cells/decidim/assemblies/content_blocks/children_assemblies_cell.rb', line 11 def total_count .size end |