gitlabhq/app/roles/upvote.rb

7 lines
118 B
Ruby
Raw Normal View History

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