module ActiveRecordPermissions::ModelUserAccess::Model::ClassMethods
Attributes
current_user_proc[RW]
The proc to call that retrieves the current_user
from the ApplicationController.
Public Instance Methods
current_user()
click to toggle source
Class-level access to the current user
# File lib/active_scaffold/active_record_permissions.rb, line 51 def current_user ActiveRecord::Base.current_user_proc.call if ActiveRecord::Base.current_user_proc end