Commit f8e154db10ed91b84e938ddad63edd0efd6e6b40

Authored by Pius Uzamere
1 parent 32ff3ef0

send item data along with choice

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/controllers/choices_controller.rb
@@ -24,7 +24,7 @@ class ChoicesController < InheritedResources::Base @@ -24,7 +24,7 @@ class ChoicesController < InheritedResources::Base
24 24
25 def show 25 def show
26 show! do |format| 26 show! do |format|
27 - format.xml { render :xml => @choice.to_xml(:methods => [:data, :votes_count, :wins_plus_losses])} 27 + format.xml { render :xml => @choice.to_xml(:methods => [:item_data, :votes_count, :wins_plus_losses])}
28 format.json { render :json => @choice.to_json(:methods => [:data])} 28 format.json { render :json => @choice.to_json(:methods => [:data])}
29 end 29 end
30 end 30 end