summaryrefslogtreecommitdiff
path: root/app/helpers/notes_helper.rb
diff options
context:
space:
mode:
authorRiyad Preukschas <riyad@informatik.uni-bremen.de>2012-10-10 12:09:45 +0200
committerRiyad Preukschas <riyad@informatik.uni-bremen.de>2012-10-10 12:09:45 +0200
commitfb0279f3113f58b1cbdbe04acabe874ac4d231f9 (patch)
tree0638ecc05519895cb35eddfdeaef9a99f61378d8 /app/helpers/notes_helper.rb
parent3f72af9994554c66a51cdfb4302e48da0edd043a (diff)
downloadgitlab-ce-fb0279f3113f58b1cbdbe04acabe874ac4d231f9.tar.gz
Fix vote counting to only count main target notes (not mixed in ones)
Diffstat (limited to 'app/helpers/notes_helper.rb')
-rw-r--r--app/helpers/notes_helper.rb6
1 files changed, 0 insertions, 6 deletions
diff --git a/app/helpers/notes_helper.rb b/app/helpers/notes_helper.rb
index 3e875023c53..ba02ca6bd49 100644
--- a/app/helpers/notes_helper.rb
+++ b/app/helpers/notes_helper.rb
@@ -12,11 +12,5 @@ module NotesHelper
!@mixed_targets || @main_target_type == note.noteable_type
end
- def note_vote_class(note)
- if note.upvote?
- "vote upvote"
- elsif note.downvote?
- "vote downvote"
- end
end
end