X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/d207da8dfc3f315f7758d1f5307c700ce4c25156..3096416bbb8fdc92d7619aecc8237a57532d9066:/app/models/quick_vote.rb?ds=inline diff --git a/app/models/quick_vote.rb b/app/models/quick_vote.rb index d6ab55b..fba31a8 100644 --- a/app/models/quick_vote.rb +++ b/app/models/quick_vote.rb @@ -19,6 +19,7 @@ class QuickVote < Election self.enddate = DateTime.now + 30 self.active = 1 self.anonymous = 1 + self.quickvote = 1 end def candidatelist=(candstring='') @@ -34,11 +35,7 @@ class QuickVote < Election end def reviewed? - if reviewed.to_i == 1 - return true - else - false - end + reviewed.to_i == 1 end def create_candidates