X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/8afec3c5b4896fd7665e6527f3acb7c7afac7e47..e682e1ecce33417f8410e71bd58d385c47e37c5b:/app/models/quick_vote.rb 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