Module: Ddr::Auth::User

Extended by:
ActiveSupport::Concern
Defined in:
lib/ddr/auth/user.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#abilityObject



47
48
49
# File 'lib/ddr/auth/user.rb', line 47

def ability
  @ability ||= AbilityFactory.call(self)
end

#agentObject



43
44
45
# File 'lib/ddr/auth/user.rb', line 43

def agent
  user_key
end

#to_sObject



39
40
41
# File 'lib/ddr/auth/user.rb', line 39

def to_s
  user_key
end

#user_keyObject

Copied from Hydra::User



35
36
37
# File 'lib/ddr/auth/user.rb', line 35

def user_key
  send(user_key_attribute)
end