Files
codeocean/app/views/comments/index.json.jbuilder
2017-08-24 11:47:50 +02:00

5 lines
197 B
Ruby

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