Module: ActiveRecordPermissions::ModelUserAccess::Model

Defined in:
lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_record_permissions.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



49
50
51
# File 'lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_record_permissions.rb', line 49

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

Instance Method Details

#current_userObject

Instance-level access to the current user



64
65
66
# File 'lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_record_permissions.rb', line 64

def current_user
  self.class.current_user
end