Sha256: a513024b39a80e5033983f9f18a807c6bf8b0c5ad1da6e670d51d52da0ba62f5

Contents?: true

Size: 415 Bytes

Versions: 5

Compression:

Stored size: 415 Bytes

Contents

require 'logger'
require 'rails/railtie'

module Kuby
  class Railtie < ::Rails::Railtie
    rake_tasks do
      load File.expand_path(File.join('tasks', 'kuby.rake'), __dir__)
    end

    initializer 'kuby.startup' do |_app|
      Kuby.logger = Kuby::BasicLogger.new(STDERR)
    end

    initializer 'kuby.health_check_middleware' do |app|
      app.middleware.use Kuby::Middleware::HealthCheck
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
kuby-core-0.5.0 lib/kuby/railtie.rb
kuby-core-0.4.0 lib/kuby/railtie.rb
kuby-core-0.3.0 lib/kuby/railtie.rb
kuby-core-0.2.0 lib/kuby/railtie.rb
kuby-core-0.1.0 lib/kuby/railtie.rb