Sha256: f98ce60ac4005ce8a0fbf3e02bc2e741918699eb897d2896fda32545d1996551
Contents?: true
Size: 573 Bytes
Versions: 15
Compression:
Stored size: 573 Bytes
Contents
# frozen_string_literal: true module Decidim module Initiatives # Class uses to retrieve initiatives that have been a long time in validating # state class SupportPeriodFinishedInitiatives < Decidim::Query # Retrieves the initiatives ready to be evaluated to decide if they have been # accepted or not. def query Decidim::Initiative .includes(:scoped_type) .where(state: "published") .where(signature_type: "online") .where("signature_end_date < ?", Date.current) end end end end
Version data entries
15 entries across 15 versions & 1 rubygems