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

Version Path
decidim-participatory_processes-0.12.0.pre app/queries/decidim/participatory_processes/prioritized_participatory_processes.rb
decidim-participatory_processes-0.11.1 app/queries/decidim/participatory_processes/prioritized_participatory_processes.rb
decidim-participatory_processes-0.11.0.pre1 app/queries/decidim/participatory_processes/prioritized_participatory_processes.rb
decidim-participatory_processes-0.10.1 app/queries/decidim/participatory_processes/prioritized_participatory_processes.rb
decidim-participatory_processes-0.10.0 app/queries/decidim/participatory_processes/prioritized_participatory_processes.rb
decidim-participatory_processes-0.9.3 app/queries/decidim/participatory_processes/prioritized_participatory_processes.rb
decidim-participatory_processes-0.9.2 app/queries/decidim/participatory_processes/prioritized_participatory_processes.rb
decidim-participatory_processes-0.9.1 app/queries/decidim/participatory_processes/prioritized_participatory_processes.rb
decidim-participatory_processes-0.9.0 app/queries/decidim/participatory_processes/prioritized_participatory_processes.rb
decidim-participatory_processes-0.8.4 app/queries/decidim/participatory_processes/prioritized_participatory_processes.rb
decidim-participatory_processes-0.8.3 app/queries/decidim/participatory_processes/prioritized_participatory_processes.rb
decidim-participatory_processes-0.8.2 app/queries/decidim/participatory_processes/prioritized_participatory_processes.rb
decidim-participatory_processes-0.8.1 app/queries/decidim/participatory_processes/prioritized_participatory_processes.rb
decidim-participatory_processes-0.8.0 app/queries/decidim/participatory_processes/prioritized_participatory_processes.rb
decidim-participatory_processes-0.7.4 app/queries/decidim/participatory_processes/prioritized_participatory_processes.rb
decidim-participatory_processes-0.7.3 app/queries/decidim/participatory_processes/prioritized_participatory_processes.rb
decidim-participatory_processes-0.7.2 app/queries/decidim/participatory_processes/prioritized_participatory_processes.rb
decidim-participatory_processes-0.7.1 app/queries/decidim/participatory_processes/prioritized_participatory_processes.rb
decidim-participatory_processes-0.7.0 app/queries/decidim/participatory_processes/prioritized_participatory_processes.rb
decidim-participatory_processes-0.6.8 app/queries/decidim/participatory_processes/prioritized_participatory_processes.rb