Files

Class/Module Index [+]

Quicksearch

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 79
def current_ability
  ::ActiveRecord::Base.current_ability_proc.call if ::ActiveRecord::Base.current_ability_proc
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.