Commit be2c59fc173794261fc823aee20da4bc30925504
1 parent
7bcc06c6
Exists in
master
and in
1 other branch
bringing back the total votes count for the question
Showing
3 changed files
with
6 additions
and
2 deletions
Show diff stats
.gitignore
app/controllers/questions_controller.rb
| ... | ... | @@ -8,7 +8,7 @@ class QuestionsController < InheritedResources::Base |
| 8 | 8 | session['prompts_ids'] ||= [] |
| 9 | 9 | format.xml { |
| 10 | 10 | #render :xml => @question.to_xml(:methods => [:item_count, :left_choice_text, :right_choice_text, :picked_prompt_id, :votes_count, :creator_id]) |
| 11 | - render :xml => @question.to_xml(:methods => [:item_count, :left_choice_text, :right_choice_text, :picked_prompt_id]) | |
| 11 | + render :xml => @question.to_xml(:methods => [:item_count, :left_choice_text, :right_choice_text, :picked_prompt_id, :votes_count]) | |
| 12 | 12 | } |
| 13 | 13 | end |
| 14 | 14 | end | ... | ... |
app/models/question.rb