lib/partisan/followable.rb in partisan-0.2.1 vs lib/partisan/followable.rb in partisan-0.2.2
- old
+ new
@@ -52,10 +52,10 @@
followers_by_type(follower_type).pluck("#{follower_type.tableize}.#{follower_field}")
end
# Update cache counter
# Called in after_create and after_destroy
- def update_follow_counter
+ def update_followable_counter
self.update_attribute('followers_count', self.followings.count) if self.respond_to?(:followers_count)
end
def method_missing(m, *args)
if m.to_s[/(.+)_follower_(.+)s$/]