Module: ActiveRecordPermissions::ModelUserAccess::Model

Defined in:
lib/active_scaffold/active_record_permissions.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



42
43
44
# File 'lib/active_scaffold/active_record_permissions.rb', line 42

def self.included(base)
  base.extend ClassMethods
end

Instance Method Details

#current_userObject

Instance-level access to the current user



57
58
59
# File 'lib/active_scaffold/active_record_permissions.rb', line 57

def current_user
  self.class.current_user
end