修改commits的返回值

This commit is contained in:
sylor_huang@126.com 2020-04-22 14:28:27 +08:00
parent 724c894e32
commit 657b1f36d5
1 changed files with 11 additions and 8 deletions

View File

@ -1,3 +1,4 @@
unless @hash_commit[:status].present? #如果有状态值,则表示报错了
json.total_count @hash_commit[:total_count] json.total_count @hash_commit[:total_count]
json.commits do json.commits do
json.array! @hash_commit[:body] do |commit| json.array! @hash_commit[:body] do |commit|
@ -8,3 +9,5 @@ json.commits do
json.partial! 'author', user: @project.owner json.partial! 'author', user: @project.owner
end end
end end
end