Sha256: b9f620b33bef371419762dad84455616b9bbccba0348968212f6c8f4ac50b759
Contents?: true
Size: 768 Bytes
Versions: 15
Compression:
Stored size: 768 Bytes
Contents
# frozen_string_literal: true module Decidim module Sortitions module Admin # Query that retrieves a list of proposal components class ParticipatorySpaceProposalComponents < Decidim::Query attr_reader :participatory_space # Sugar syntax. Allow retrieving all proposal components for the # given participatory space. def self.for(participatory_space) new(participatory_space).query end # Initializes the query def initialize(participatory_space) @participatory_space = participatory_space end def query Component .where(participatory_space:, manifest_name: "proposals") .published end end end end end
Version data entries
15 entries across 15 versions & 1 rubygems