7 lines
117 B
Ruby
7 lines
117 B
Ruby
module Votes
|
|
# Return the number of +1 comments (upvotes)
|
|
def upvotes
|
|
notes.select(&:upvote?).size
|
|
end
|
|
end
|