Fixed comments for snippets. Tests fixed

This commit is contained in:
Dmitriy Zaporozhets 2012-02-24 22:36:44 +02:00
parent d41d8ffb02
commit 292a41cbe2
7 changed files with 26 additions and 24 deletions

View file

@ -13,6 +13,8 @@ class NotesController < ApplicationController
@notes = case params[:target_type]
when "commit"
then project.commit_notes(project.commit((params[:target_id]))).fresh.limit(20)
when "snippet"
then project.snippets.find(params[:target_id]).notes
when "wall"
then project.common_notes.order("created_at DESC").fresh.limit(20)
when "issue"

View file

@ -55,7 +55,6 @@ class SnippetsController < ApplicationController
end
def show
@notes = @snippet.notes
@note = @project.notes.new(:noteable => @snippet)
render_full_content
end