Commit eba61c111d175f298d7c6541f47a6dcdf3e55b7d
1 parent
88964132
Exists in
master
and in
4 other branches
Remove upvotes method from Issue.
Must have snuck in during one of the multiple rebases while observers were being refactored.
Showing
1 changed file
with
0 additions
and
5 deletions
Show diff stats
app/models/issue.rb
@@ -56,11 +56,6 @@ class Issue < ActiveRecord::Base | @@ -56,11 +56,6 @@ class Issue < ActiveRecord::Base | ||
56 | today? && created_at == updated_at | 56 | today? && created_at == updated_at |
57 | end | 57 | end |
58 | 58 | ||
59 | - # Return the number of +1 comments (upvotes) | ||
60 | - def upvotes | ||
61 | - notes.select(&:upvote?).size | ||
62 | - end | ||
63 | - | ||
64 | def is_being_reassigned? | 59 | def is_being_reassigned? |
65 | assignee_id_changed? | 60 | assignee_id_changed? |
66 | end | 61 | end |