Skip to content

Commit

Permalink
Add without_role to README
Browse files Browse the repository at this point in the history
  • Loading branch information
Undo1 committed Mar 3, 2017
1 parent 038f9b9 commit 7420069
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Expand Up @@ -201,6 +201,8 @@ forum.applied_roles
```ruby
Forum.with_role(:admin)
# => [ list of Forum instances that have role "admin" bound to them ]
Forum.without_role(:admin)
# => [ list of Forum instances that do NOT have role "admin" bound to them ]
Forum.with_role(:admin, current_user)
# => [ list of Forum instances that have role "admin" bound to them and belong to current_user roles ]
Forum.with_roles([:admin, :user], current_user)
Expand Down

0 comments on commit 7420069

Please sign in to comment.