scinote-web/app/views/repository_rows/simple.json.jbuilder
2020-04-06 19:52:41 +02:00

8 lines
245 B
Ruby

# frozen_string_literal: true
json.draw @draw
json.data do
json.array! prepare_row_columns_simple(@repository_rows)
end
json.recordsFiltered @repository_rows.first ? @repository_rows.first.filtered_count : 0
json.recordsTotal @all_rows_count