X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/c65b1e11059c5cf510b54c785d4a246215058f70..14836effd31a54f1ff693f423c062691b4f64768:/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?