lib/socialization/victims/followable.rb in socialization-0.5.0.beta3 vs lib/socialization/victims/followable.rb in socialization-0.5.0.beta4
- old
+ new
@@ -10,9 +10,11 @@
module Socialization
module Followable
extend ActiveSupport::Concern
included do
+ after_destroy { Socialization.follow_model.remove_followers(self) }
+
# Specifies if self can be followed.
#
# @return [Boolean]
def is_followable?
true