mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-09 05:18:01 +08:00
Fix variable naming
This commit is contained in:
parent
503d19fb90
commit
4886d95ad5
1 changed files with 3 additions and 3 deletions
|
@ -115,7 +115,7 @@ module ModelExporters
|
||||||
end
|
end
|
||||||
|
|
||||||
def repository(repository)
|
def repository(repository)
|
||||||
repositories = {
|
result = {
|
||||||
repository: repository,
|
repository: repository,
|
||||||
repository_columns: repository.repository_columns.map do |c|
|
repository_columns: repository.repository_columns.map do |c|
|
||||||
repository_column(c)
|
repository_column(c)
|
||||||
|
@ -125,9 +125,9 @@ module ModelExporters
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
unless repository.is_a?(RepositorySnapshot)
|
unless repository.is_a?(RepositorySnapshot)
|
||||||
repositories[:repository_snapshots] = repository.repository_snapshots.map { |r| repository(r) }
|
result[:repository_snapshots] = repository.repository_snapshots.map { |r| repository(r) }
|
||||||
end
|
end
|
||||||
repositories
|
result
|
||||||
end
|
end
|
||||||
|
|
||||||
def repository_row(repository_row)
|
def repository_row(repository_row)
|
||||||
|
|
Loading…
Add table
Reference in a new issue