Module: Authority::Abilities::ClassMethods
- 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.
31 32 33 34 35 |
# File 'lib/authority/abilities.rb', line 31 def @authorizer ||= .constantize # Get an actual reference to the authorizer class rescue NameError raise Authority::NoAuthorizerError.new("#{} does not exist in your application") end |