Sha256: 6f2c11f1e1f34f21f1c1897adccb4bed06ab0f9b6d74dd81c66e9174495f8337
Contents?: true
Size: 532 Bytes
Versions: 30
Compression:
Stored size: 532 Bytes
Contents
# Other authorizers should subclass this one class ApplicationAuthorizer < Authority::Authorizer # 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] def self.default(adjective, user) # 'Whitelist' strategy for security: anything not explicitly allowed is # considered forbidden. false end end
Version data entries
30 entries across 30 versions & 3 rubygems