Class: ApplicationAuthorizer
- Inherits:
-
Authority::Authorizer
- Object
- Authority::Authorizer
- ApplicationAuthorizer
- Defined in:
- lib/generators/templates/application_authorizer.rb
Overview
Other authorizers should subclass this one
Instance Attribute Summary
Attributes inherited from Authority::Authorizer
Class Method Summary collapse
-
.default(adjective, user) ⇒ Boolean
Any class method from Authority::Authorizer that isn’t overridden will call its authorizer’s default method.
Methods inherited from Authority::Authorizer
Constructor Details
This class inherits a constructor from Authority::Authorizer
Class Method Details
.default(adjective, user) ⇒ Boolean
Any class method from Authority::Authorizer that isn’t overridden will call its authorizer’s default method.
10 11 12 13 14 |
# File 'lib/generators/templates/application_authorizer.rb', line 10 def self.default(adjective, user) # 'Whitelist' strategy for security: anything not explicitly allowed is # considered forbidden. false end |