Permalink
Browse files

Merge pull request #587 from route/patch-1

Just add singleton to description of authorize_resource
  • Loading branch information...
ryanb committed May 10, 2012
2 parents 6e8bc85 + f166b59 commit 78e1a1725891aca31fd863e2e83da2b5ca1ad013
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/cancan/controller_additions.rb
@@ -151,6 +151,9 @@ def load_resource(*args)
# [:+except+]
# Does not apply before filter to given actions.
#
+ # [:+singleton+]
+ # Pass +true+ if this is a singleton resource through a +has_one+ association.
+ #
# [:+parent+]
# True or false depending on if the resource is considered a parent resource. This defaults to +true+ if a resource
# name is given which does not match the controller.

0 comments on commit 78e1a17

Please sign in to comment.