lib/tunemygc/spies/action_controller.rb in tunemygc-1.0.35 vs lib/tunemygc/spies/action_controller.rb in tunemygc-1.0.36

- old
+ new

@@ -48,20 +48,9 @@ @subscriptions.each{|s| ActiveSupport::Notifications.unsubscribe(s) } @subscriptions.clear TuneMyGc.log "uninstalled action_controller spy" end - def check_uninstall - if ENV["RUBY_GC_TUNE_REQUESTS"] - @limit ||= Integer(ENV["RUBY_GC_TUNE_REQUESTS"]) - @processed += 1 - if @processed == @limit - uninstall - TuneMyGc.log "kamikaze after #{@processed} of #{@limit} requests" - end - end - end - private def subscription(pattern, handler) @subscriptions << ActiveSupport::Notifications.subscribe(pattern, handler) end end \ No newline at end of file