module ActiveScaffold::Bridges::Cancan::ClassMethods
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
Public Instance Methods
Source
# File lib/active_scaffold/bridges/cancan/cancan_bridge.rb, line 26 def active_scaffold(model_id = nil, &) super authorize_resource( class: active_scaffold_config.model, instance: :record ) end
Calls superclass method