Sha256: 61bed1ebc47fb92c5df22e746f140499cd11344888313199a6224da1a2c76c38
Contents?: true
Size: 462 Bytes
Versions: 12
Compression:
Stored size: 462 Bytes
Contents
# frozen_string_literal: true module Decidim module Consultations # This query class filters all consultations given an organization. class OrganizationConsultations < Decidim::Query def self.for(organization) new(organization).query end def initialize(organization) @organization = organization end def query Decidim::Consultation.where(organization: @organization) end end end end
Version data entries
12 entries across 12 versions & 1 rubygems