]> projects.mako.cc - selectricity-live/commitdiff
Record a junk IP address for XMLRPC'ers
authorJohn Dong <jdong@mit.edu>
Wed, 15 Aug 2007 20:45:51 +0000 (16:45 -0400)
committerJohn Dong <jdong@mit.edu>
Wed, 15 Aug 2007 20:45:51 +0000 (16:45 -0400)
app/models/selectricity_service.rb

index 86458e09f6d6e84d928e62d5c9f2bcd5a2fbc160..ac2ef205261198986e1add69fe7e3178828bad85 100644 (file)
@@ -7,6 +7,7 @@ class SelectricityService < ActionWebService::Base
     if election
       voter = QuickVoter.new
       voter.election = election
     if election
       voter = QuickVoter.new
       voter.election = election
+      voter.ipaddress = "0.0.0.0"
       voter.session_id = "XMLRPC:#{voter_id}"
       voter.vote=Vote.new
       voter.vote.votes=vote_list[0]
       voter.session_id = "XMLRPC:#{voter_id}"
       voter.vote=Vote.new
       voter.vote.votes=vote_list[0]

Benjamin Mako Hill || Want to submit a patch?