module ActiveScaffold::CancanBridge::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/lib/cancan_bridge.rb, line 60 def current_ability ::ActiveRecord::Base.current_ability_proc.call if ::ActiveRecord::Base.current_ability_proc end