Skip to content

Commit

Permalink
No blocks plz!
Browse files Browse the repository at this point in the history
  • Loading branch information
dzucconi committed Jun 28, 2012
1 parent 4bd761e commit a3f4430
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/acts_as_follower/followable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,10 @@ def followers(options={})
self.followings.unblocked.includes(:follower).all(options).collect{|f| f.follower}
end

def blocks(options={})
self.followings.blocked.includes(:follower).all(options).collect{|f| f.follower}
end
# We don't want your blocks! We want our blocks!
# def blocks(options={})
# self.followings.blocked.includes(:follower).all(options).collect{|f| f.follower}
# end

# Returns true if the current instance is followed by the passed record
# Returns false if the current instance is blocked by the passed record or no follow is found
Expand Down

0 comments on commit a3f4430

Please sign in to comment.