Sha256: 502ac31f37d0e5ece72876db616c9aa56e3761e6c1daf79f7a1b418e221c12fe
Contents?: true
Size: 528 Bytes
Versions: 25
Compression:
Stored size: 528 Bytes
Contents
# frozen_string_literal: true module Decidim module Votings # This query class filters public votings given an organization in a # meaningful prioritized order. class OrganizationPrioritizedVotings < Rectify::Query def initialize(organization, user = nil) @organization = organization @user = user end def query Rectify::Query.merge( OrganizationPublishedVotings.new(@organization), PrioritizedVotings.new ).query end end end end
Version data entries
25 entries across 25 versions & 1 rubygems