Module: ActiveScaffold::ActiveRecordPermissions::ModelUserAccess::Model::ClassMethods

Defined in:
lib/active_scaffold/active_record_permissions.rb

Instance Method Summary collapse

Instance Method Details

#current_userObject

Class-level access to the current user


52
53
54
# File 'lib/active_scaffold/active_record_permissions.rb', line 52

def current_user
  ActiveScaffold::Registry.current_user_proc&.call
end