From: Benjamin Mako Hill Date: Sat, 18 Aug 2007 00:00:04 +0000 (+0000) Subject: >>>>>>>>>>>>>> This breaks the API. <<<<<<<<<<<<<<<<<<<<<<<<<< X-Git-Url: https://projects.mako.cc/source/rubyvote/commitdiff_plain/aedf5193ed2a020c02fac7932198eb556bfb4b0a?hp=aedf5193ed2a020c02fac7932198eb556bfb4b0a;ds=sidebyside >>>>>>>>>>>>>> This breaks the API. <<<<<<<<<<<<<<<<<<<<<<<<<< Refactored the commits added by Joe Slag to return the full lists of candidates. In Joe's code, the full list of candidates were associated with the vote objects which didn't make sense since they are really part of results. I've gone ahead and reimplented this. It does mean that the API has changed. In the old version, you would get a ranked list of candidates by using: vote_object.results You now get it by doing: result_object.ranked_candidates vote_object.result.ranked_candidates >>>>>>>>>>>>>> This breaks the API. <<<<<<<<<<<<<<<<<<<<<<<<<< git-svn-id: svn://rubyforge.org/var/svn/rubyvote/trunk@46 1440c7f4-e209-0410-9a04-881b5eb134a8 ---