spec/models/user.rb in mongoid_follow-0.1.0 vs spec/models/user.rb in mongoid_follow-0.2.0
- old
+ new
@@ -2,6 +2,14 @@
include Mongoid::Document
include Mongoid::Followee
include Mongoid::Follower
field :name
+
+ def after_follow
+ # after follower follows
+ end
+
+ def after_unfollowed
+ # after follower unfollows
+ end
end
\ No newline at end of file