Hi, I tried new (1.6.7) version of cancan where namespaces work but I have problem with turning off authorize for some action , example:
class FooController < ApplicationController
load_and_authorize_resource :except => [:index]
class Foo:BarController < FooController
So in FooController I would like to skip index authorization but in Foo:BarController I would like to check this authorization. But in this situation load_and_authorize_resource works for both. How to set some skip for controller without need to put in each inherited controller extra load_and_authorize_resource ? It will be cool if something like load_and_authorize_resource :except => [ "Foo:index"] will work so I just give him clue which action from which namespace he should skip. There is something like that ?
load_and_authorize_resource :except => [ "Foo:index"]
Thanks a lot for any advice and info.
I think you're trying to be overly DRY here. That extra load_and_authorize_resource call isn't actually repetition - it's different behavior from the base class. Do you agree?
@mitfik: I'm closing this for now. If you still have an issue, please comment and we'll reopen it.
@derekprior: I agree :)