mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-08 00:23:01 +08:00
17 lines
526 B
Text
17 lines
526 B
Text
|
# frozen_string_literal: true
|
||
|
|
||
|
json.id @repository_row.id
|
||
|
json.repository_name @repository.name
|
||
|
json.default_columns do
|
||
|
json.name @repository_row.name
|
||
|
json.code @repository_row.code
|
||
|
json.added_on @repository_row.created_at
|
||
|
json.added_by @repository_row.created_by&.full_name
|
||
|
json.archived @repository_row.archived?
|
||
|
end
|
||
|
json.custom_columns do
|
||
|
json.array! @repository_row.repository_cells do |repository_cell|
|
||
|
json.merge! serialize_repository_cell_value(repository_cell, @repository.team, @repository)
|
||
|
end
|
||
|
end
|