Sha256: 7f647ff4ff2ca10ff6538db4c9c000af720fd4400bb453bb577fbad107564b30
Contents?: true
Size: 571 Bytes
Versions: 12
Compression:
Stored size: 571 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've 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
12 entries across 12 versions & 1 rubygems