Module: Authority::Abilities::ClassMethods

Defined in:
lib/authority/abilities.rb

Instance Method Summary collapse

Instance Method Details

#authorizerObject



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

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