Skip to content

Commit

Permalink
Simplified Follower#follows_by_type.
Browse files Browse the repository at this point in the history
  • Loading branch information
james2m committed Sep 22, 2011
1 parent 080ea5b commit bbc4295
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 @@ -42,7 +42,7 @@ def stop_following(followable)

# Returns the follow records related to this instance by type.
def follows_by_type(followable_type, options={})
Follow.unblocked.includes(:followable).for_follower(self).for_followable_type(followable_type).find(:all, options)
self.follows.unblocked.includes(:followable).for_followable_type(followable_type).all(options)
end

# Returns the follow records related to this instance with the followable included.
Expand Down

0 comments on commit bbc4295

Please sign in to comment.