X-Git-Url: https://projects.mako.cc/source/selectricity/blobdiff_plain/afa6b59aed60497d059af87c049c0b4f1a6c8b6c..41db8c20bfa6518cacaf6b3f816fb071fc486374:/app/models/election.rb diff --git a/app/models/election.rb b/app/models/election.rb old mode 100755 new mode 100644 index cf7bba5..3baeef0 --- a/app/models/election.rb +++ b/app/models/election.rb @@ -57,7 +57,7 @@ class Election < ActiveRecord::Base end def quickvote? - type == 'QuickVote' + self.class == 'QuickVote' end def active?