Remove upvotes method from Issue.
Must have snuck in during one of the multiple rebases while observers were being refactored.
This commit is contained in:
parent
88964132ed
commit
eba61c111d
1 changed files with 0 additions and 5 deletions
|
@ -56,11 +56,6 @@ class Issue < ActiveRecord::Base
|
|||
today? && created_at == updated_at
|
||||
end
|
||||
|
||||
# Return the number of +1 comments (upvotes)
|
||||
def upvotes
|
||||
notes.select(&:upvote?).size
|
||||
end
|
||||
|
||||
def is_being_reassigned?
|
||||
assignee_id_changed?
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue