1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

push the autoloads up to requires

This commit is contained in:
Aaron Patterson 2012-03-21 11:33:23 -07:00
parent 0a12a5f816
commit 60736fec53

View file

@ -1,3 +1,7 @@
require 'active_support/notifications/instrumenter'
require 'active_support/notifications/instrumenter'
require 'active_support/notifications/fanout'
module ActiveSupport
# = Notifications
#
@ -105,10 +109,6 @@ module ActiveSupport
# to log subscribers in a thread. You can use any queue implementation you want.
#
module Notifications
autoload :Instrumenter, 'active_support/notifications/instrumenter'
autoload :Event, 'active_support/notifications/instrumenter'
autoload :Fanout, 'active_support/notifications/fanout'
@instrumenters = Hash.new { |h,k| h[k] = notifier.listening?(k) }
class << self