Issues pagination

This commit is contained in:
randx 2012-03-22 00:09:56 +02:00
parent 1fefd7cbd3
commit 755a894c91
20 changed files with 107 additions and 5 deletions

View file

@ -28,7 +28,7 @@ class IssuesController < ApplicationController
when 2 then @project.issues.closed
when 3 then @project.issues.opened.assigned(current_user)
else @project.issues.opened
end
end.page(params[:page]).per(10)
@issues = @issues.includes(:author, :project)