gitlabhq/app/roles/votes.rb

7 lines
117 B
Ruby
Raw Normal View History

2012-09-08 02:23:49 +02:00
module Votes
# Return the number of +1 comments (upvotes)
def upvotes
notes.select(&:upvote?).size
end
end