Sha256: b0876f7a57092bc1bccb8ebf047ce64b80440167871930ff8d8a4cc4b1a47303
Contents?: true
Size: 467 Bytes
Versions: 39
Compression:
Stored size: 467 Bytes
Contents
# frozen_string_literal: true module Decidim module Initiatives # This query retrieves the organization prioritized initiatives that will appear in the homepage class OrganizationPrioritizedInitiatives < Rectify::Query attr_reader :organization def initialize(organization) @organization = organization end def query Decidim::Initiative.where(organization: organization).published.open end end end end
Version data entries
39 entries across 39 versions & 1 rubygems