-
-
Notifications
You must be signed in to change notification settings - Fork 638
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
skip_authorize_resource not inheritable #391
Comments
@iamdriz hello - i could not discern the different between the two code examples. would you pls elaborate? |
@BKSpurgeon Sorry forgot to add the correct code. Basically as you can see I've had to add the |
I'll try and look into it. i can't guarantee success tho. pls bear with me. |
@BKSpurgeon |
@iamdriz bro gimme till the weekend i have not forgotton. then i'll tell you whether i could or couldn't do it Ben |
@BKSpurgeon You have any luck with it? |
@iamdriz bro don't wait by the phone.........i've simply been inundated......i can't promise to find the solution -- i've yet to seriously look at the gem -- by Monday you'll know for sure whether i can solve it or not. i hope i can. btw can github do PMs? |
workaround:
|
is this issue solved in cancancan 2.0? |
to fix would probably need a significant work around of existing code base. |
@coorasse I've only tested this on CanCanCan 2.0 so I'd say not. |
Looks like this was already solved here: 1f78627 ? |
should be fixed, agree. |
Any reason why
skip_authorize_resource
isn't inheritable?For example I have an
ApplicationController
with it in and aPagesController
that inherits fromApplicationController
like so:The methods inside PagesController don't skip! So PagesController isn't inheriting
skip_authorize_resource
.But doing this:
Does work... why isn't
skip_authorize_resource
inherited? As I'd prefer to avoid having to add that line to all my subcontrollers if possible.The reason for doing it is because of this issue: #390
The text was updated successfully, but these errors were encountered: