[#105] fix paginate commits & add paginate to files

This commit is contained in:
Alexander Machehin 2013-06-27 00:01:33 +06:00
parent fd93f472d7
commit 3fd99a42d2
1 changed files with 2 additions and 3 deletions

View File

@ -93,12 +93,11 @@ class Api::V1::PullRequestsController < Api::V1::BaseController
end
def commits
@commits = @pull.repo.commits_between(@pull.to_commit, @pull.from_commit)
@commits.paginate(paginate_params)
@commits = @pull.repo.commits_between(@pull.to_commit, @pull.from_commit).paginate(paginate_params)
end
def files
@stats = @pull.diff_stats.zip(@pull.diff)
@stats = @pull.diff_stats.zip(@pull.diff).paginate(paginate_params)
end
def merge