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