X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/afa6b59aed60497d059af87c049c0b4f1a6c8b6c..14836effd31a54f1ff693f423c062691b4f64768:/app/models/election.rb?ds=sidebyside 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?