Skip to content

Commit

Permalink
Merge branch 'master' of github.com:lastomato/mongo_followable
Browse files Browse the repository at this point in the history
  • Loading branch information
lastomato committed Feb 3, 2012
2 parents 51bc910 + bb871f2 commit 1862f3d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.rdoc
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit 1862f3d

Please sign in to comment.