I have never used cancan bridge, but I think you can turn off CanCan in a controller overriding current_ability method to return nil
El Viernes, 27 de febrero de 2015 14:10:00 Jason Fleetwood-Boldt escribió: > Hey AS list, > > I have an app that uses CanCan and I am building a special part of the site > that is for Admins only. I am able to authorize all the admins with a can > :manage rule in my ability.rb class -- this makes AS use the CanCan > bridge. > > Is there any way to specify something like model-based > authorized_for_update? which I would get with the default ActiveScaffold > security stuff. > > Alternatively , is there a way to turn off the AS-CanCan bridge on a > controller-by-controller basis? Ideally I kind of want both the bridge & > the non-bridge functions, is that possible? > > -Jason > > ---- > > Jason Fleetwood-Boldt > [email protected] -- You received this message because you are subscribed to the Google Groups "ActiveScaffold : Ruby on Rails Gem" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/activescaffold. For more options, visit https://groups.google.com/d/optout.
