Commit f8e154db10ed91b84e938ddad63edd0efd6e6b40
1 parent
32ff3ef0
Exists in
master
and in
1 other branch
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 | 24 | |
25 | 25 | def show |
26 | 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 | 28 | format.json { render :json => @choice.to_json(:methods => [:data])} |
29 | 29 | end |
30 | 30 | end | ... | ... |