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



49
50
51
# File 'lib/ddr/auth/user.rb', line 49

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

#agentObject



45
46
47
# File 'lib/ddr/auth/user.rb', line 45

def agent
  user_key
end

#to_sObject



41
42
43
# File 'lib/ddr/auth/user.rb', line 41

def to_s
  user_key
end

#user_keyObject

Copied from Hydra::User



37
38
39
# File 'lib/ddr/auth/user.rb', line 37

def user_key
  send(user_key_attribute)
end