We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 865d5de commit 1de5bfdCopy full SHA for 1de5bfd
1 file changed
app/views/api/v2/plans/_show.json.jbuilder
@@ -71,17 +71,13 @@ unless @minimal
71
72
if @question_and_answer
73
json.questions_and_answers do
74
- outputs.each do |output|
75
- q_and_a = presenter.send(:fetch_all_q_and_a)
76
- next if q_and_a.blank?
77
-
78
- json.set! output.id.to_s do
79
- json.array! q_and_a do |item|
80
- json.title item[:title]
81
- json.question item[:question]
82
- json.answer item[:answer]
83
- end
84
+ q_and_a = presenter.send(:fetch_all_q_and_a)
+ next if q_and_a.blank?
+
+ json.array! q_and_a do |item|
+ json.title item[:title]
+ json.question item[:question]
+ json.answer item[:answer]
85
end
86
87
0 commit comments