controller level authorization As already has callbacks to ensure authorization at controller method via “authorization_method” but let’s include this too, just in case, no sure how performance is affected tough :TODO benchmark
# File lib/active_scaffold/bridges/cancan/cancan_bridge.rb, line 33 def active_scaffold_with_cancan(model_id = nil, &block) active_scaffold_without_cancan(model_id, &block) authorize_resource( :class => active_scaffold_config.model, :instance => :record ) end