scinote-web/app/views/repository_rows/index.json.jbuilder

12 lines
390 B
Text
Raw Normal View History

# frozen_string_literal: true
json.draw @draw
json.data do
2018-03-09 00:36:10 +08:00
json.array! prepare_row_columns(@repository_rows,
@repository,
@columns_mappings,
@repository.team)
end
json.recordsFiltered @repository_rows.first ? @repository_rows.first.filtered_count : 0
json.recordsTotal @all_rows_count