diff options
author | Valery Sizov <vsv2711@gmail.com> | 2015-12-29 10:11:20 +0200 |
---|---|---|
committer | Valery Sizov <vsv2711@gmail.com> | 2015-12-29 10:11:20 +0200 |
commit | d3807328d8ed9be2915f67708b093269bf0b1b9f (patch) | |
tree | 9b77b2d1fcb69ab4791048389c1655939236c1c8 | |
parent | 83d42c1518274dc0af0f49fda3a10e846569cbcc (diff) | |
download | gitlab-ce-upvote_count_to_api.tar.gz |
note votes methids implementationupvote_count_to_api
-rw-r--r-- | app/models/note.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/note.rb b/app/models/note.rb index 1ca86b2592f..3d5b663c99f 100644 --- a/app/models/note.rb +++ b/app/models/note.rb @@ -347,11 +347,11 @@ class Note < ActiveRecord::Base end def downvote? - false + is_award && note == "thumbsdown" end def upvote? - false + is_award && note == "thumbsup" end def editable? |