Skip to content

skip_load_and_authorize_resource does not raises an exception #744

Closed
wants to merge 55 commits into from

6 participants

@Serabe
Serabe commented Sep 18, 2012

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 23, 2011
@ryanb modifying Ability to use symbol for subject instead of class, also ad…
…ding subject aliases
98ed392
@ryanb getting all specs passing again 3a825ed
@ryanb adding enable_authorization method and deprecating some other control…
…ler methods
7ee942c
@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
0f37534
@ryanb require attributes to be checked on create/update action in order to …
…be fully authorized
488cc2d
@ryanb refactoring fully authorized check and catching bug 242e912
@ryanb check authorization is sufficient in an after_filter when doing enabl…
…e_authorization
346ca2c
@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
35fbee5
@ryanb removing skipping feature in ControllerResource for now 5d68cae
@ryanb mark index action as fully authorized when fetching records through a…
…ccessible_by
27eba72
@ryanb don't authorize based on resource name in authorize_resource since th…
…is is already handled by enable_authorization
f41b394
@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
a29e316
@ryanb set resource attributes in update action and authorize after set - cl…
…oses #141
f6c2054
@ryanb load member through method instead of instance variable to improve de…
…cent_exposure support
b8ff2db
@ryanb fixing model comparison spec, I believe this bug is caused by recent …
…version of with_model
6ef2c44
@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
1fb2c01
@ryanb consider specificity when finding relevant rules so generic rules wil…
…l not override specific ones - closes #321
6de9e46
@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
1ff1b70
@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
48ed6f9
@bsodmike bsodmike cancan 2.0 fix for issue #565; test to properly authorize resource fo…
…r namespaced controller
0e8c7ca
@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
4986de8
@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.
245b83f
@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
76d465a
@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
aed9f26
@Serabe Serabe skip_load_and_authorize_resource does not raises any exception. 0bf6e94
@Serabe
Serabe commented Sep 18, 2012

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
Something went wrong with that request. Please try again.