From 048423fc140e1da6c87f29f7d0828fdd3725d778 Mon Sep 17 00:00:00 2001 From: Nick Herman Date: Fri, 9 Oct 2015 13:54:40 +0300 Subject: [PATCH] Fix blocking --- lib/acts_as_follower/followable.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/acts_as_follower/followable.rb b/lib/acts_as_follower/followable.rb index 7582859..665311f 100644 --- a/lib/acts_as_follower/followable.rb +++ b/lib/acts_as_follower/followable.rb @@ -89,7 +89,7 @@ def get_follow_for(follower) private def block_future_follow(follower) - follows.create(:followable => self, :follower => follower, :blocked => true) + Follow.create(:followable => self, :follower => follower, :blocked => true) end def block_existing_follow(follower)