Sha256: 8e23afe54d12ca0496992e3b2370fd4c78610963b50ea649fb7ada06851b11ee

Contents?: true

Size: 470 Bytes

Versions: 25

Compression:

Stored size: 470 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Elections
    module Admin
      # A class used to find actions with a pending status
      class PendingActions < Rectify::Query
        # Syntactic sugar to initialize the class and return the queried objects.
        def self.for
          new.query
        end

        # Finds the votes with pending status
        def query
          Decidim::Elections::Action.pending
        end
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
decidim-elections-0.26.10 app/queries/decidim/elections/admin/pending_actions.rb
decidim-elections-0.26.9 app/queries/decidim/elections/admin/pending_actions.rb
decidim-elections-0.26.8 app/queries/decidim/elections/admin/pending_actions.rb
decidim-elections-0.26.7 app/queries/decidim/elections/admin/pending_actions.rb
decidim-elections-0.26.5 app/queries/decidim/elections/admin/pending_actions.rb
decidim-elections-0.26.4 app/queries/decidim/elections/admin/pending_actions.rb
decidim-elections-0.26.3 app/queries/decidim/elections/admin/pending_actions.rb
decidim-elections-0.26.2 app/queries/decidim/elections/admin/pending_actions.rb
decidim-elections-0.26.1 app/queries/decidim/elections/admin/pending_actions.rb
decidim-elections-0.26.0 app/queries/decidim/elections/admin/pending_actions.rb
decidim-elections-0.26.0.rc2 app/queries/decidim/elections/admin/pending_actions.rb
decidim-elections-0.26.0.rc1 app/queries/decidim/elections/admin/pending_actions.rb
decidim-elections-0.25.2 app/queries/decidim/elections/admin/pending_actions.rb
decidim-elections-0.25.1 app/queries/decidim/elections/admin/pending_actions.rb
decidim-elections-0.25.0 app/queries/decidim/elections/admin/pending_actions.rb
decidim-elections-0.25.0.rc4 app/queries/decidim/elections/admin/pending_actions.rb
decidim-elections-0.25.0.rc3 app/queries/decidim/elections/admin/pending_actions.rb
decidim-elections-0.25.0.rc2 app/queries/decidim/elections/admin/pending_actions.rb
decidim-elections-0.25.0.rc1 app/queries/decidim/elections/admin/pending_actions.rb
decidim-elections-0.24.3 app/queries/decidim/elections/admin/pending_actions.rb