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

speed up notification publishing by writing the delegate method

This commit is contained in:
Aaron Patterson 2011-02-09 13:46:47 -08:00
parent 5548e47adb
commit 3d0579fc03

View file

@ -45,7 +45,10 @@ module ActiveSupport
class << self
attr_writer :notifier
delegate :publish, :to => :notifier
def publish(name, *args)
notifier.publish(name, *args)
end
def instrument(name, payload = {})
if @instrumenters[name]