Skip to content

Commit

Permalink
Simplifies Follower#get_follow.
Browse files Browse the repository at this point in the history
  • Loading branch information
james2m committed Sep 21, 2011
1 parent 165137a commit f905e49
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 @@ -91,7 +91,7 @@ def method_missing(m, *args)

# Returns a follow record for the current instance and followable object.
def get_follow(followable)
Follow.unblocked.for_follower(self).for_followable(followable).first
self.follows.unblocked.for_followable(followable).first
end

end
Expand Down

0 comments on commit f905e49

Please sign in to comment.