From eba61c111d175f298d7c6541f47a6dcdf3e55b7d Mon Sep 17 00:00:00 2001 From: Robb Kidd Date: Wed, 20 Jun 2012 13:18:29 -0400 Subject: [PATCH] Remove upvotes method from Issue. Must have snuck in during one of the multiple rebases while observers were being refactored. --- app/models/issue.rb | 5 ----- 1 file changed, 5 deletions(-) diff --git a/app/models/issue.rb b/app/models/issue.rb index 2b4b311da..844d418b1 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -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 -- 2.11.0