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.26.10 app/queries/decidim/participatory_processes/prioritized_participatory_processes.rb
decidim-participatory_processes-0.26.9 app/queries/decidim/participatory_processes/prioritized_participatory_processes.rb
decidim-participatory_processes-0.26.8 app/queries/decidim/participatory_processes/prioritized_participatory_processes.rb
decidim-participatory_processes-0.26.7 app/queries/decidim/participatory_processes/prioritized_participatory_processes.rb
decidim-participatory_processes-0.26.5 app/queries/decidim/participatory_processes/prioritized_participatory_processes.rb
decidim-participatory_processes-0.26.4 app/queries/decidim/participatory_processes/prioritized_participatory_processes.rb
decidim-participatory_processes-0.26.3 app/queries/decidim/participatory_processes/prioritized_participatory_processes.rb
decidim-participatory_processes-0.26.2 app/queries/decidim/participatory_processes/prioritized_participatory_processes.rb
decidim-participatory_processes-0.26.1 app/queries/decidim/participatory_processes/prioritized_participatory_processes.rb
decidim-participatory_processes-0.26.0 app/queries/decidim/participatory_processes/prioritized_participatory_processes.rb
decidim-participatory_processes-0.26.0.rc2 app/queries/decidim/participatory_processes/prioritized_participatory_processes.rb
decidim-participatory_processes-0.26.0.rc1 app/queries/decidim/participatory_processes/prioritized_participatory_processes.rb
decidim-participatory_processes-0.25.2 app/queries/decidim/participatory_processes/prioritized_participatory_processes.rb
decidim-participatory_processes-0.25.1 app/queries/decidim/participatory_processes/prioritized_participatory_processes.rb
decidim-participatory_processes-0.25.0 app/queries/decidim/participatory_processes/prioritized_participatory_processes.rb
decidim-participatory_processes-0.25.0.rc4 app/queries/decidim/participatory_processes/prioritized_participatory_processes.rb
decidim-participatory_processes-0.25.0.rc3 app/queries/decidim/participatory_processes/prioritized_participatory_processes.rb
decidim-participatory_processes-0.25.0.rc2 app/queries/decidim/participatory_processes/prioritized_participatory_processes.rb
decidim-participatory_processes-0.25.0.rc1 app/queries/decidim/participatory_processes/prioritized_participatory_processes.rb
decidim-participatory_processes-0.24.3 app/queries/decidim/participatory_processes/prioritized_participatory_processes.rb