move notes login to one controller

This commit is contained in:
Dmitriy Zaporozhets 2012-02-24 09:16:06 +02:00
parent 81092c0198
commit 215a01f63c
15 changed files with 55 additions and 46 deletions

View file

@ -39,7 +39,6 @@ class MergeRequestsController < ApplicationController
git_not_found! and return
end
@notes = @merge_request.notes.inc_author.order("created_at DESC").limit(20)
@note = @project.notes.new(:noteable => @merge_request)
@commits = @project.repo.
@ -52,7 +51,7 @@ class MergeRequestsController < ApplicationController
respond_to do |format|
format.html
format.js { respond_with_notes }
format.js
end
end