Sha256: 309f1e36dec60c7580a8542b328e0c1756cf1761d2f090277852179f9a02e2b3
Contents?: true
Size: 361 Bytes
Versions: 2
Compression:
Stored size: 361 Bytes
Contents
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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bumbler-0.5.0 | lib/bumbler/track_initializers.rb |
bumbler-0.4.0 | lib/bumbler/track_initializers.rb |