Module: ActiveScaffold::Bridges::Cancan::ModelUserAccess::Model::ClassMethods

Defined in:
lib/active_scaffold/bridges/cancan/cancan_bridge.rb

Instance Method Summary collapse

Instance Method Details

#current_abilityObject

Class-level access to the current ability


78
79
80
# File 'lib/active_scaffold/bridges/cancan/cancan_bridge.rb', line 78

def current_ability
  ::ActiveScaffold::Registry.current_ability_proc&.call
end