forgeplus/app/views/pull_requests/commits.json.jbuilder

3 lines
101 B
Ruby

json.commits_count @commits_result.size
json.commits @commits_result, partial: 'commit', as: :commit