Sha256: 4795181f73c820ca44f8ce46b09688951e1e8a2ffc56a82c3206e1463367c4c5

Contents?: true

Size: 575 Bytes

Versions: 9

Compression:

Stored size: 575 Bytes

Contents

# frozen_string_literal: true

module FactoryBot
  module Instrumentation
    # The Instrumentation engine which can be mounted.
    class Engine < ::Rails::Engine
      isolate_namespace FactoryBot::Instrumentation

      # Fill in some dynamic settings (application related)
      initializer 'factory_bot_instrumentation.config' do
        FactoryBot::Instrumentation.configure do |conf|
          # Set the application name dynamically
          conf.application_name \
            ||= Rails.application.class.parent_name.titleize
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
factory_bot_instrumentation-0.7.1 lib/factory_bot/instrumentation/engine.rb
factory_bot_instrumentation-0.7.0 lib/factory_bot/instrumentation/engine.rb
factory_bot_instrumentation-0.6.0 lib/factory_bot/instrumentation/engine.rb
factory_bot_instrumentation-0.5.1 lib/factory_bot/instrumentation/engine.rb
factory_bot_instrumentation-0.5.0 lib/factory_bot/instrumentation/engine.rb
factory_bot_instrumentation-0.4.0 lib/factory_bot/instrumentation/engine.rb
factory_bot_instrumentation-0.3.0 lib/factory_bot/instrumentation/engine.rb
factory_bot_instrumentation-0.2.0 lib/factory_bot/instrumentation/engine.rb
factory_bot_instrumentation-0.1.0 lib/factory_bot/instrumentation/engine.rb