class ApplicationAuthorizer

Other authorizers should subclass this one

Public Class Methods

default(adjective, user) click to toggle source

Any class method from Authority::Authorizer that isn't overridden will call its authorizer's default method.

@param [Symbol] adjective; example: `:creatable` @param [Object] user - whatever represents the current user in your app @return [Boolean]

# 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