Sha256: 4141f76bb94c0cd1b5a4c4bb9ec71f70f67bc6e2da093ace8271f06d5af00bc1

Contents?: true

Size: 350 Bytes

Versions: 3

Compression:

Stored size: 350 Bytes

Contents

# frozen_string_literal: true

module KeycloakRack
  # Railtie that gets autoloaded when Rails is detected in the environment.
  #
  # @api private
  class Railtie < Rails::Railtie
    railtie_name :keycloak_rack

    initializer("keycloak_rack.insert_middleware") do |app|
      app.config.middleware.use(KeycloakRack::Middleware)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
keycloak_rack-1.1.1 lib/keycloak_rack/railtie.rb
keycloak_rack-1.1.0 lib/keycloak_rack/railtie.rb
keycloak_rack-1.0.0 lib/keycloak_rack/railtie.rb