summaryrefslogtreecommitdiff
path: root/app/controllers/notes_controller.rb
diff options
context:
space:
mode:
authorRiyad Preukschas <riyad@informatik.uni-bremen.de>2012-11-20 17:46:55 +0100
committerRiyad Preukschas <riyad@informatik.uni-bremen.de>2012-12-03 22:51:56 +0100
commit06ea1228404e56ee3356739a5e9a935f8d570b05 (patch)
treeb136272d1b1da4fd163a71e94bcedff557cf21ab /app/controllers/notes_controller.rb
parent39834ec6409163e3339ed23ccdc9682932f45c9e (diff)
downloadgitlab-ce-06ea1228404e56ee3356739a5e9a935f8d570b05.tar.gz
Refactor diff notes creation
Diffstat (limited to 'app/controllers/notes_controller.rb')
-rw-r--r--app/controllers/notes_controller.rb3
1 files changed, 0 insertions, 3 deletions
diff --git a/app/controllers/notes_controller.rb b/app/controllers/notes_controller.rb
index ca22af0de83..4f8b7bb9da3 100644
--- a/app/controllers/notes_controller.rb
+++ b/app/controllers/notes_controller.rb
@@ -12,11 +12,8 @@ class NotesController < ProjectResourceController
@notes = Notes::LoadContext.new(project, current_user, params).execute
if params[:target_type] == "merge_request"
- @has_diff = true
@mixed_targets = true
@discussions = discussions_from_notes
- elsif params[:target_type] == "commit"
- @has_diff = true
end
respond_with(@notes)