Skip to content

Commit

Permalink
Simplifies Follower#following_by_type_count.
Browse files Browse the repository at this point in the history
  • Loading branch information
james2m committed Sep 22, 2011
1 parent ed4822d commit 36a7807
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/acts_as_follower/follower.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def following_by_type(followable_type, options={})
end

def following_by_type_count(followable_type)
Follow.unblocked.for_follower(self).for_followable_type(followable_type).count
follows.unblocked.for_followable_type(followable_type).count
end

# Allows magic names on following_by_type
Expand Down

0 comments on commit 36a7807

Please sign in to comment.