Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
baldwindavid committed Sep 8, 2008
1 parent 18faad1 commit 7a3a082
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,24 @@ are just a few examples:
#### User

@user.has_role? [:manager, :editor, :admin], @project
@user.has_role :admin, @project
@user.has_no_role :admin, @project
@user.has_no_roles_on @project
@user.has_no_roles
@user.has_what_with_role :owner, Project
@user.has_what_roles_on @project

#### Objects

@project.accepts_role? :admin, @user
@project.accepts_role :admin, @user
@project.accepts_no_role :admin, @user
@project.accepts_who_with_role [:editor, :manager, :delegate]
@project.accepts_what_roles_by @user

The User gets these "has" methods by adding `acts_as_authorized_user` to the User model. Authorizable
objects (including Users) can get the "accepts" methods by adding `acts_as_authorizable` to the model.
Detailed examples for each available method are discussed in detail below.
Detailed examples for each available method are discussed below under "Available Methods".



Expand Down

0 comments on commit 7a3a082

Please sign in to comment.