Sha256: 8138a5ba64454818b97f932fc687280a41be3ff53c4bac289686a098da10dea8
Contents?: true
Size: 421 Bytes
Versions: 3
Compression:
Stored size: 421 Bytes
Contents
Rails::Engine.class_eval do def load(initializer) initializer = initializer.sub(Rails.root.to_s, ".") Bumbler::Hooks.benchmark(initializer) { super }.last end end Rails::Initializable::Initializer.class_eval do alias_method :run_without_bumbler, :run def run(*args) name = (@name.is_a?(Symbol) ? @name.inspect : @name) Bumbler::Hooks.benchmark(name) { run_without_bumbler(*args) }.last end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bumbler-0.3.2 | lib/bumbler/track_initializers.rb |
bumbler-0.3.1 | lib/bumbler/track_initializers.rb |
bumbler-0.3.0 | lib/bumbler/track_initializers.rb |