skip_load_and_authorize_resource does not raises an exception #744

wants to merge 55 commits into


None yet

6 participants


Previously, skip_load_and_authorize_resource raised implementation exceptions due to deprecation of skip_load_resource and skip_authorize_resource.

Implementation's been moved up from these methods to skip_load_and_authorize_resource.

This should fix issue #465

and others added some commits Mar 24, 2011
@ryanb modifying Ability to use symbol for subject instead of class, also ad…
…ding subject aliases
@ryanb getting all specs passing again 3a825ed
@ryanb adding enable_authorization method and deprecating some other control…
…ler methods
@ryanb allow strings along with symbols in Ability definition and checking a03d352
@ryanb adding attributes as 3rd argument to can and can? calls 85efbdb
@ryanb adding fully_authorized? method to Ability to check if conditions are…
… considered in authorize! call
@ryanb require attributes to be checked on create/update action in order to …
…be fully authorized
@ryanb refactoring fully authorized check and catching bug 242e912
@ryanb check authorization is sufficient in an after_filter when doing enabl…
@ryanb merging with master bcac159
@ryanb renaming AccessDenied exception to Unauthorized cf2896f
@ryanb passing block to enable_authorization will be executed when CanCan::U…
…nauthorized exception is raised
@ryanb removing skipping feature in ControllerResource for now 5d68cae
@ryanb mark index action as fully authorized when fetching records through a…
@ryanb don't authorize based on resource name in authorize_resource since th…
…is is already handled by enable_authorization
@ryanb authorize params passed in create and update action baa1dac
@ryanb fixing marking fully_authorized on an object instance e5b7621
@ryanb updating some documentation for CanCan 2.0 c6f9abb
@ryanb allow SQL conditions to be used with a block 63865cc
@ryanb updating version in gemspec to alpha 5a64d94
@ryanb merging master into 2.0 e24d5d1
@ryanb changing the interface for ControllerResource load/authorize so they …
…can be intertwined
@ryanb set resource attributes in update action and authorize after set - cl…
…oses #141
@ryanb load member through method instead of instance variable to improve de…
…cent_exposure support
@ryanb fixing model comparison spec, I believe this bug is caused by recent …
…version of with_model
@ryanb include tests with cancan:ability generator - closes #350 6c1d685
@ryanb fixing ability generator 0442634
@ryanb merging 1.6 additions into 2.0 branch 86063e4
@ryanb Merge branch 'master' into 2.0 2160183
@ryanb fixing namespace controller resource spec 092b510
@ryanb Merge branch 'master' into 2.0 67c9361
@ryanb fixing spec for new id_param option eafd6cf
@jnv jnv Add failing example of `cannot` for attribute, corresponds to #406 aa83fee
@ryanb ignore cannot clause with attributes when not checking for with attri…
…butes - closes #406
@ryanb consider specificity when finding relevant rules so generic rules wil…
…l not override specific ones - closes #321
@ryanb include namespace in params when creating/updating resource - closes #… c94de4a
@ryanb switching to Rspec stubbing/mocking - no more RR b37f2d0
@ryanb changing should spec wording ec36137
@ryanb removing .rvmrc, no need for a gemset with Bundler 8c72ab4
@ryanb disabling MetaWhere feature and making Acitve Record fixture that is …
…always loaded
@ryanb upgrading specs to use Rails 3.2.3 88cd11b
@ryanb getting data_mapper and mongoid specs passwing with latest versions 167d383
@bsodmike bsodmike cancan 2.0 fix for issue #565; fixes namespaced non-db/model backed r…
…esources authorization
@bsodmike bsodmike cancan 2.0 fix for issue #565; test to properly authorize resource fo…
…r namespaced controller
@ryanb Merge pull request #570 from bsodmike/bsodmike-2.0
Cancan 2.0 fix for issue #565; fixes namespaced non-db/model backed resources authorization
@ryanb fixing Ruby versions running on travis.yml ccd24ab
@ollym ollym Named resources were not being loaded correctly. Fixes #633 78cbcf1
@ollym ollym Classify causes plural model names to be incorrectly renamed
Some model names will be renamed incorrectly e.g. 'business'. It should
be the responsibility of the user to make sure they use a name that
directly corresponds to the model name. The only filtering performed
should be camelize.
@ollym ollym Fixed bug where parent resources were being regarded as children 354e34b
@ryanb Merge pull request #635 from ollym/2.0
Named resources were not loading correctly in 2.0
@ryanb tests passing with Rails 3.2.6 de000fd
@ryanb bringing up to date with master branch 6886aec
@xinuc xinuc fix namespace split, so we can use / for namespace 6c1828a
@ryanb Merge pull request #668 from bukalapak/2.0
Fix namespace split
@Serabe Serabe skip_load_and_authorize_resource does not raises any exception. 0bf6e94

Sorry, wrong target branche :(

@Serabe Serabe closed this Sep 18, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment