X-Git-Url: https://projects.mako.cc/source/selectricity/blobdiff_plain/fd484b33a3920e0031007c5c2f1dec61913cbab5..04f827dd4647f3a7d6e5bd8f5e9083c730a8dccc:/app/models/election.rb?ds=inline diff --git a/app/models/election.rb b/app/models/election.rb index ba466b4..0860a42 100644 --- a/app/models/election.rb +++ b/app/models/election.rb @@ -39,5 +39,9 @@ class Election < ActiveRecord::Base def activate! self.active = 1 end + + def quickvote? + quickvote.to_i == 1 + end end