gitlab-org--gitlab-foss/app/roles/upvote.rb
2012-06-07 15:44:57 +03:00

6 lines
118 B
Ruby

module Upvote
# Return the number of +1 comments (upvotes)
def upvotes
notes.select(&:upvote?).size
end
end