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:
parent
5548e47adb
commit
3d0579fc03
1 changed files with 4 additions and 1 deletions
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue