Sha256: 30f7cef7bc4f225e2a1955c7f4386542f6cc01eab341d173665f4b0882f5b91d

Contents?: true

Size: 648 Bytes

Versions: 3

Compression:

Stored size: 648 Bytes

Contents

# frozen_string_literal: true

Coverband.eager_loading_coverage!
module Coverband
  class Railtie < Rails::Railtie
    initializer 'coverband.configure' do |app|
      app.middleware.use Coverband::Middleware
    end

    config.after_initialize do
      Coverband.report_coverage(true)
      Coverband.configuration.logger&.debug('Coverband: reported after_initialize')
      Coverband.runtime_coverage!
    end

    config.before_initialize do
      Coverband.configuration.logger&.debug('Coverband: set to eager_loading')
      Coverband.eager_loading_coverage!
    end

    rake_tasks do
      load 'coverband/utils/tasks.rb'
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
coverband-4.2.0 lib/coverband/utils/railtie.rb
coverband-4.2.0.rc3 lib/coverband/utils/railtie.rb
coverband-4.2.0.rc2 lib/coverband/utils/railtie.rb