X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/c54996f70a89dc17e75d8dc8c7172ec0bd4eb33e..ee1466c8a08f1cb4e008936218c75980940bc24c:/app/models/selectricity_service.rb?ds=inline 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