Permalink
Browse files

Long-overdue nautical example [ci skip]

  • Loading branch information...
nathanl committed Oct 6, 2012
1 parent 355efe3 commit c417d577bca1011f012a65ab099361b0a095e5e2
Showing with 2 additions and 1 deletion.
  1. +2 −1 README.markdown
View
@@ -45,8 +45,9 @@ Using Authority, you have:
- Fine-grained, **instance-level** rules. Examples:
- "Management users can only edit schedules with date ranges in the future."
- "Users can't create playlists more than 20 songs long unless they've paid."
-- A clear syntax for permissions-based views. Example:
+- A clear syntax for permissions-based views. Examples:
- `link_to 'Edit Widget', edit_widget_path(@widget) if current_user.can_update?(@widget)`
+ - `link_to 'Keelhaul Scallywag', keelhaul_scallywag_path(@scallywag) if current_user.can_keelhaul?(@scallywag)`
- Graceful handling of access violations: by default, it displays a "you can't do that" screen and logs the violation.
- Minimal effort and mess.

0 comments on commit c417d57

Please sign in to comment.