Files
codeocean/app/views/comments/index.json.jbuilder
2021-05-14 22:03:06 +02:00

7 lines
228 B
Ruby

# frozen_string_literal: true
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