Skip to content
Browse files

Just add singleton to description of authorize_resource

  • Loading branch information...
1 parent 9eebeb2 commit f166b5945a63b3f13288faa4dc378aabef18d43b Dmitriy Vorotilin committed
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/cancan/controller_additions.rb
View
3 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 f166b59

Please sign in to comment.
Something went wrong with that request. Please try again.