lib/partisan/followable.rb in partisan-0.2 vs lib/partisan/followable.rb in partisan-0.2.1
- old
+ new
@@ -5,11 +5,11 @@
include Partisan::FollowHelper
included do
has_many :followings, as: :followable, class_name: 'Partisan::Follow', dependent: :destroy
- define_model_callbacks :follow
- define_model_callbacks :unfollow
+ define_model_callbacks :being_followed
+ define_model_callbacks :being_unfollowed
attr_accessor :about_to_be_followed_by, :just_followed_by, :about_to_be_unfollowed_by, :just_unfollowed_by
end
# Return true or false if the resource is following another
#