Sha256: 29a563a60b469d526d8d8c177a2f4e1a933f85b2884bd716ad91b5300482b496

Contents?: true

Size: 419 Bytes

Versions: 1

Compression:

Stored size: 419 Bytes

Contents

# frozen_string_literal: true
Rails::Engine.prepend(
  Module.new do
    def load(file, *)
      initializer = file.sub(Rails.root.to_s, ".")
      Bumbler::Hooks.benchmark(initializer) { super }.last
    end
  end
)

Rails::Initializable::Initializer.prepend(
  Module.new do
    def run(*)
      name = (@name.is_a?(Symbol) ? @name.inspect : @name)
      Bumbler::Hooks.benchmark(name) { super }.last
    end
  end
)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bumbler-0.9.0 lib/bumbler/track_initializers.rb