Module: Pastore::Guards

Extended by:
ActiveSupport::Concern
Defined in:
lib/pastore/guards.rb,
lib/pastore/guards/settings.rb

Overview

Implements the features for Rails controller access guards.

Defined Under Namespace

Classes: RoleConflictError, Settings

Instance Method Summary collapse

Instance Method Details

#current_roleObject



27
28
29
# File 'lib/pastore/guards.rb', line 27

def current_role
  self.class.pastore_guards.current_role(self)
end