X-Git-Url: https://projects.mako.cc/source/selectricity/blobdiff_plain/c65b1e11059c5cf510b54c785d4a246215058f70..41db8c20bfa6518cacaf6b3f816fb071fc486374:/app/models/election.rb diff --git a/app/models/election.rb b/app/models/election.rb index cf7bba5..3baeef0 100644 --- 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?