OSDN Git Service

Remove upvotes method from Issue.
authorRobb Kidd <robb@thekidds.org>
Wed, 20 Jun 2012 17:18:29 +0000 (13:18 -0400)
committerRobb Kidd <robb@thekidds.org>
Wed, 20 Jun 2012 18:09:46 +0000 (14:09 -0400)
Must have snuck in during one of the multiple rebases while observers were
being refactored.

app/models/issue.rb

index 2b4b311..844d418 100644 (file)
@@ -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