module ActiveScaffold::Bridges::Cancan::ModelUserAccess::Model::ClassMethods

Attributes

current_ability_proc[RW]

The proc to call that retrieves the #current_ability from the ApplicationController.

Public Instance Methods

current_ability() click to toggle source

Class-level access to the current ability

# File lib/active_scaffold/bridges/cancan/cancan_bridge.rb, line 80
def current_ability
  ::ActiveRecord::Base.current_ability_proc.call if ::ActiveRecord::Base.current_ability_proc
end