fixed notes loading/paging

This commit is contained in:
Dmitriy Zaporozhets 2011-11-05 13:59:43 +02:00
parent 0b0e0225ad
commit 586c53ea05
6 changed files with 47 additions and 15 deletions

View file

@ -33,10 +33,7 @@ class CommitsController < ApplicationController
respond_to do |format|
format.html
format.js do
@notes = @notes.where("id > ?", params[:last_id]) if params[:last_id]
@notes = @notes.where("id < ?", params[:first_id]) if params[:first_id]
end
format.js { respond_with_notes }
end
end
end