Module: Authority::Abilities::ClassMethods
- Extended by:
- Forwardable
- Defined in:
- lib/authority/abilities.rb
Instance Method Summary collapse
-
#authorizer ⇒ Class
Of the designated authorizer.
Instance Method Details
#authorizer ⇒ Class
Returns of the designated authorizer.
45 46 47 48 49 50 51 |
# File 'lib/authority/abilities.rb', line 45 def @authorizer ||= .constantize # Get an actual reference to the authorizer class rescue NameError raise Authority::NoAuthorizerError.new( "#{} is set as the authorizer for #{self}, but the constant is missing" ) end |