|
|
@ -10,7 +10,14 @@ end |
|
|
|
|
|
|
|
Rails.configuration.after_initialize do |
|
|
|
Semantic::InstrumentationManager.clear |
|
|
|
|
|
|
|
bootstrap = [{ kind: :restored, constant: 'ACTION_VIEW', type: :boolean, old_value: false, new_value: true }, |
|
|
|
{ kind: :restored, constant: 'ACTION_CONTROLLER', type: :boolean, old_value: false, new_value: true }] |
|
|
|
im ||= Semantic::InstrumentationManager.new |
|
|
|
im.process(bootstrap) |
|
|
|
|
|
|
|
ActiveSupport::Notifications.subscribe('rolling.live_constant') do |event| |
|
|
|
puts event.payload[:changes].inspect |
|
|
|
im.process(event.payload[:changes]) |
|
|
|
rescue StandardError => e |
|
|
|
puts e |
|
|
|