Module: Authority::Abilities::ClassMethods

Defined in:
lib/authority/abilities.rb

Instance Method Summary collapse

Instance Method Details

#authorizerObject



30
31
32
33
34
# File 'lib/authority/abilities.rb', line 30

def authorizer
  @authorizer ||= authorizer_name.constantize # Get an actual reference to the authorizer class
rescue NameError
  raise Authority::NoAuthorizerError.new("#{authorizer_name} does not exist in your application")
end