Skip to content
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.

Just add singleton to description of authorize_resource #587

Merged
merged 1 commit into from May 10, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions lib/cancan/controller_additions.rb
Expand Up @@ -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.
Expand Down