From f166b5945a63b3f13288faa4dc378aabef18d43b Mon Sep 17 00:00:00 2001 From: Dmitriy Vorotilin Date: Fri, 23 Mar 2012 01:34:04 +0400 Subject: [PATCH] Just add singleton to description of authorize_resource --- lib/cancan/controller_additions.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/cancan/controller_additions.rb b/lib/cancan/controller_additions.rb index 0d293a3..a65578e 100644 --- a/lib/cancan/controller_additions.rb +++ b/lib/cancan/controller_additions.rb @@ -151,6 +151,9 @@ module CanCan # [:+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.