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

Version Path
authority-2.5.0 lib/generators/templates/application_authorizer.rb
mix-rails-0.26.1 mix-rails-core/app/authorizers/application_authorizer.rb
mix-rails-core-0.26.1 app/authorizers/application_authorizer.rb
mix-rails-0.26.0 mix-rails-core/app/authorizers/application_authorizer.rb
mix-rails-core-0.26.0 app/authorizers/application_authorizer.rb
mix-rails-0.25.1 mix-rails-core/app/authorizers/application_authorizer.rb
mix-rails-core-0.25.1 app/authorizers/application_authorizer.rb
mix-rails-0.25.0 mix-rails-core/app/authorizers/application_authorizer.rb
mix-rails-core-0.25.0 app/authorizers/application_authorizer.rb
mix-rails-0.24.1 mix-rails-core/app/authorizers/application_authorizer.rb
mix-rails-core-0.24.1 app/authorizers/application_authorizer.rb
mix-rails-0.24.0 mix-rails-core/app/authorizers/application_authorizer.rb
mix-rails-core-0.24.0 app/authorizers/application_authorizer.rb
authority-2.4.3 lib/generators/templates/application_authorizer.rb
authority-2.4.2 lib/generators/templates/application_authorizer.rb
mix-rails-0.23.1 mix-rails-core/app/authorizers/application_authorizer.rb
mix-rails-core-0.23.1 app/authorizers/application_authorizer.rb
authority-2.4.1 lib/generators/templates/application_authorizer.rb
authority-2.4.0 lib/generators/templates/application_authorizer.rb
mix-rails-0.23.0 mix-rails-core/app/authorizers/application_authorizer.rb