Pagination and better perfomance for projects page.

This commit is contained in:
randx 2012-04-20 19:11:49 +03:00
parent 60bf502bf1
commit 1d601616a3
6 changed files with 42 additions and 19 deletions

View file

@ -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 = []