scinote-web/app/views/repository_rows/simple_view_index.json.jbuilder
2020-05-13 17:58:05 +02:00

8 lines
250 B
Ruby

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