diff --git a/README.rdoc b/README.rdoc index 60acf23..c79055b 100644 --- a/README.rdoc +++ b/README.rdoc @@ -2,6 +2,8 @@ Now works for both Mongoid and Mongo_Mapper! +see http://www.thesika.info/articles/mongo_followable_update for details + == Installation In console: @@ -27,7 +29,7 @@ Now you can set authorization: current_user.set_authorization('user', 'game') # now current_user cannot follow User and Game model current_user.unset_authorization('User', 'Game') -And then you can follow a model: +And then you can follow and unfollow: @group = Group.new @group.save @@ -36,6 +38,9 @@ And then you can follow a model: current_user.unfollow(@group) current_user.unfollow_all + current_user.follow(*array_of_objects_to_follow) # follow an array of objects + current_user.unfollow(*array_of_objects_to_follow) # unfollow + or, @group.unfollowed(current_user)