Class: Decidim::Proposals::ProposalVote
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Decidim::Proposals::ProposalVote
- Defined in:
- app/models/decidim/proposals/proposal_vote.rb
Overview
A proposal can include a vote per user.
Class Method Summary collapse
-
.final ⇒ Object
Final votes are votes that will be taken into account, that is, they are not temporary.
-
.temporary ⇒ Object
Temporary votes are used when a minimum amount of votes is configured in a component.
Class Method Details
.final ⇒ Object
Final votes are votes that will be taken into account, that is, they are not temporary.
26 27 28 |
# File 'app/models/decidim/proposals/proposal_vote.rb', line 26 def self.final where(temporary: false) end |
.temporary ⇒ Object
Temporary votes are used when a minimum amount of votes is configured in a component. They are not taken into account unless the amount of votes exceeds a threshold - meanwhile, they are marked as temporary.
20 21 22 |
# File 'app/models/decidim/proposals/proposal_vote.rb', line 20 def self.temporary where(temporary: true) end |