mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
speed up notification publishing by writing the delegate method
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user