Commit b62dbe79e39d4d7d5964523ee194478bf33371eb
1 parent
c6569df2
Exists in
master
and in
1 other branch
send the question name along with the choice to save a server roundtrip in some cases
Showing
2 changed files
with
5 additions
and
1 deletions
Show diff stats
app/controllers/choices_controller.rb
... | ... | @@ -28,7 +28,7 @@ class ChoicesController < InheritedResources::Base |
28 | 28 | @choice.reload |
29 | 29 | @choice.compute_score! |
30 | 30 | @choice.reload |
31 | - render :xml => @choice.to_xml(:methods => [:item_data, :wins_plus_losses])} | |
31 | + render :xml => @choice.to_xml(:methods => [:item_data, :wins_plus_losses, :question_name])} | |
32 | 32 | format.json { render :json => @choice.to_json(:methods => [:data])} |
33 | 33 | end |
34 | 34 | end | ... | ... |