forgeplus/app/views/challenges/answer.json.jbuilder

3 lines
93 B
Ruby

json.array! @answers do |answer|
json.(answer, :id, :name, :contents, :level, :score)
end