Sha256: 84deb03b7242ff2868adc25c2b6164ce7022a6741a69751f4318db8502ac4aad
Contents?: true
Size: 460 Bytes
Versions: 97
Compression:
Stored size: 460 Bytes
Contents
# frozen_string_literal: true module Decidim module ParticipatoryProcesses # This query orders processes by importance, prioritizing promoted processes # first, and closest to finalization date second. class PrioritizedParticipatoryProcesses < Rectify::Query def query Decidim::ParticipatoryProcess.order(promoted: :desc).includes(:active_step).order("decidim_participatory_process_steps.end_date ASC") end end end end
Version data entries
97 entries across 97 versions & 2 rubygems