X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/c54996f70a89dc17e75d8dc8c7172ec0bd4eb33e..6df3d73c4a0c52d79f3e8abe5180fbd73953a6a5:/app/models/selectricity_service.rb diff --git a/app/models/selectricity_service.rb b/app/models/selectricity_service.rb index 9d7d91e..9e276ef 100644 --- a/app/models/selectricity_service.rb +++ b/app/models/selectricity_service.rb @@ -98,7 +98,7 @@ class SelectricityService < ActionWebService::Base def create_quickvote(election) qv=QuickVote.new(:name => election.name, :description => election.description) qv.candidatelist=election.candidate_names - if qv.save.to_s + if qv.save return "" else return "Saving quickvote FAILED:"+qv.errors.inspect