Module: ActiveScaffold::CancanBridge::ClassMethods
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/active_scaffold/bridges/cancan/lib/cancan_bridge.rb
Overview
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
Instance Method Summary collapse
Instance Method Details
#active_scaffold_with_cancan(model_id = nil, &block) ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/active_scaffold/bridges/cancan/lib/cancan_bridge.rb', line 13 def active_scaffold_with_cancan(model_id = nil, &block) active_scaffold_without_cancan(model_id, &block) ( :class => active_scaffold_config.model, :instance => :record ) end |