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