Module: ActiveScaffold::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



45
46
47
48
# File 'lib/active_scaffold/active_record_permissions.rb', line 45

def self.included(base)
  base.extend ClassMethods
  base.send :include, ActiveRecordPermissions::Permissions
end

Instance Method Details

#current_userObject

Instance-level access to the current user



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

def current_user
  self.class.current_user
end