Sha256: 9333d1334ed6c6cb907d37fc8f350feddd91e73c5ce1baaf1092e72530ac59b4
Contents?: true
Size: 802 Bytes
Versions: 6
Compression:
Stored size: 802 Bytes
Contents
# frozen_string_literal: true require "cell/partial" module Decidim module Meetings # This cell renders the list of public participating # organizations of a meeting. # # Example: # # cell("decidim/participating_organizations_list", meeting) class AttendingOrganizationsListCell < PublicParticipantsListCell private def user_group_ids model.user_group_registrations.user_group_ids end def user_groups Decidim::UserGroup.where(id: user_group_ids) end # Finds the public organizations (as user groups) of meeting # # Returns an Array of presented UserGroups def public_participants @public_participants ||= user_groups.map { |user_group| present(user_group) } end end end end
Version data entries
6 entries across 6 versions & 1 rubygems