Merge pull request #426 from manuelmeurer/patch-1
Fixed documentation for skip_load_resource and skip_authorize_resource.
This commit is contained in:
commit
e0492f5d75
|
@ -186,7 +186,7 @@ module CanCan
|
||||||
skip_authorize_resource(*args)
|
skip_authorize_resource(*args)
|
||||||
end
|
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
|
# 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.
|
# skip the effects on. It will apply to all actions by default.
|
||||||
#
|
#
|
||||||
|
@ -202,7 +202,7 @@ module CanCan
|
||||||
cancan_skipper[:load][name] = options
|
cancan_skipper[:load][name] = options
|
||||||
end
|
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
|
# 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.
|
# skip the effects on. It will apply to all actions by default.
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in New Issue
Block a user