summaryrefslogtreecommitdiff
path: root/app/controllers/notes_controller.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-02-24 22:36:44 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-02-24 22:36:44 +0200
commit292a41cbe295f16f7148913b31eb0fb91f3251c3 (patch)
tree65dc09de8a317b080a96e29770de91c7cd02d79a /app/controllers/notes_controller.rb
parentd41d8ffb02fa74fd4571603548bd7e401ec99e0c (diff)
downloadgitlab-ce-292a41cbe295f16f7148913b31eb0fb91f3251c3.tar.gz
Fixed comments for snippets. Tests fixed
Diffstat (limited to 'app/controllers/notes_controller.rb')
-rw-r--r--app/controllers/notes_controller.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/notes_controller.rb b/app/controllers/notes_controller.rb
index 327985ef668..9b731a766f0 100644
--- a/app/controllers/notes_controller.rb
+++ b/app/controllers/notes_controller.rb
@@ -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"