Files
codeocean/app/views/comments/index.json.jbuilder
2015-03-27 11:57:35 +01:00

5 lines
158 B
Ruby

json.array!(@comments) do |comment|
json.extract! comment, :id, :user_id, :file_id, :row, :column, :text
json.url comment_url(comment, format: :json)
end