X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/f0a53d67fa85d76b36a55d9a4a887360eca8d864..e682e1ecce33417f8410e71bd58d385c47e37c5b:/app/models/quick_vote.rb?ds=sidebyside diff --git a/app/models/quick_vote.rb b/app/models/quick_vote.rb index c427b98..ce4a4fb 100644 --- a/app/models/quick_vote.rb +++ b/app/models/quick_vote.rb @@ -75,6 +75,7 @@ class QuickVote < Election ### Convert a shortname or id into a QuickVote def self.ident_to_quickvote(ident) + return nil unless ident if ident.match(/^\d+$/) quickvote = QuickVote.find(ident) else