Pagination and better perfomance for projects page.
This commit is contained in:
parent
60bf502bf1
commit
1d601616a3
6 changed files with 42 additions and 19 deletions
|
@ -43,8 +43,8 @@ class CommitsController < ApplicationController
|
|||
end
|
||||
|
||||
def compare
|
||||
first = project.commit(params[:to])
|
||||
last = project.commit(params[:from])
|
||||
first = project.commit(params[:to].try(:strip))
|
||||
last = project.commit(params[:from].try(:strip))
|
||||
|
||||
@diffs = []
|
||||
@commits = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue