spec/models/group.rb in mongoid_follow-0.1.0 vs spec/models/group.rb in mongoid_follow-0.2.0
- old
+ new
@@ -1,6 +1,14 @@
class Group
include Mongoid::Document
include Mongoid::Followee
field :name
+
+ def before_followed
+ # before followee is followed
+ end
+
+ def before_unfollowed
+ # before followee is unfollowed
+ end
end
\ No newline at end of file