Merge pull request #426 from manuelmeurer/patch-1

Fixed documentation for skip_load_resource and skip_authorize_resource.
This commit is contained in:
Ryan Bates 2011-07-23 13:31:03 -07:00
commit e0492f5d75

View File

@ -186,7 +186,7 @@ module CanCan
skip_authorize_resource(*args)
end
# Skip both the loading behavior of CanCan. This is useful when using +load_and_authorize_resource+ but want to
# Skip the loading behavior of CanCan. This is useful when using +load_and_authorize_resource+ but want to
# only do authorization on certain actions. You can pass :only and :except options to specify which actions to
# skip the effects on. It will apply to all actions by default.
#
@ -202,7 +202,7 @@ module CanCan
cancan_skipper[:load][name] = options
end
# Skip both the authorization behavior of CanCan. This is useful when using +load_and_authorize_resource+ but want to
# Skip the authorization behavior of CanCan. This is useful when using +load_and_authorize_resource+ but want to
# only do loading on certain actions. You can pass :only and :except options to specify which actions to
# skip the effects on. It will apply to all actions by default.
#