Just add singleton to description of authorize_resource
This commit is contained in:
		
							parent
							
								
									9eebeb2155
								
							
						
					
					
						commit
						f166b5945a
					
				| @ -151,6 +151,9 @@ module CanCan | |||||||
|       # [:+except+] |       # [:+except+] | ||||||
|       #   Does not apply before filter to given actions. |       #   Does not apply before filter to given actions. | ||||||
|       # |       # | ||||||
|  |       # [:+singleton+] | ||||||
|  |       #   Pass +true+ if this is a singleton resource through a +has_one+ association. | ||||||
|  |       # | ||||||
|       # [:+parent+] |       # [:+parent+] | ||||||
|       #   True or false depending on if the resource is considered a parent resource. This defaults to +true+ if a resource |       #   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. |       #   name is given which does not match the controller. | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Dmitriy Vorotilin
						Dmitriy Vorotilin