Sha256: f3e1dfdb8d90466e3daa556bd6d06b905cfc897a6b951fbb8fae7f8e38251c56
Contents?: true
Size: 532 Bytes
Versions: 19
Compression:
Stored size: 532 Bytes
Contents
# frozen_string_literal: true module Decidim module Elections # A class used to find elections finished to close their voting period class ElectionsFinishedToEnd < Decidim::Query # Syntactic sugar to initialize the class and return the queried objects. def self.for new.query end # Finds the Elections that should be closed. def query Decidim::Elections::Election.bb_vote .where("end_time <= ?", Time.current) end end end end
Version data entries
19 entries across 19 versions & 1 rubygems