Open cthielen opened 10 years ago
it's not available anywhere by default.. you have to explicitly include the maintenance file require 'declarative_authorization/maintenance' then use Authorization::Maintenance::without_access_control (or include the module in the controller)
What is your use case for needing to do this in a controller?
The without_access_control block is safer than Authorization.ignore_access_control as it implicitly turns the rules back on at the end of the block. Why is this not available in controllers?