Default subjects to :all when action is provided #749

Open
wants to merge 1 commit into
from

Conversation

Projects
None yet
3 participants
@mikepack
Collaborator

mikepack commented Sep 26, 2012

This adds support for:

can :do_something

Which is equivalent to:

can :do_something, :all

Providing an action but no subjects will currently fail silently when invoked and throw an AccessDenied exception in the controller for non-resourceful actions. Fixes #734.

Default to :all when action is provided
Previously, it silently failed and threw an AccessDenied exception in the controller. This provides a sensible default.
@carloslopes

This comment has been minimized.

Show comment Hide comment
@carloslopes

carloslopes May 10, 2013

@ryanb this is stuck by 8 months.. any chances to be merged or rejected?

@ryanb this is stuck by 8 months.. any chances to be merged or rejected?

@davidakachaos

This comment has been minimized.

Show comment Hide comment
@davidakachaos

davidakachaos Nov 22, 2013

@ryanb ping?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment