aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/notifications.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2011-02-09 13:46:47 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2011-02-09 13:46:47 -0800
commit3d0579fc03fe4adc97c770f148e035ee75745648 (patch)
treec185e34fd624238df358996aa67f28ac4db7be70 /activesupport/lib/active_support/notifications.rb
parent5548e47adbb6dda320cd09ecb696c568896aa6f1 (diff)
downloadrails-3d0579fc03fe4adc97c770f148e035ee75745648.tar.gz
rails-3d0579fc03fe4adc97c770f148e035ee75745648.tar.bz2
rails-3d0579fc03fe4adc97c770f148e035ee75745648.zip
speed up notification publishing by writing the delegate method
Diffstat (limited to 'activesupport/lib/active_support/notifications.rb')
-rw-r--r--activesupport/lib/active_support/notifications.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/notifications.rb b/activesupport/lib/active_support/notifications.rb
index fd79188ba4..116f28d360 100644
--- a/activesupport/lib/active_support/notifications.rb
+++ b/activesupport/lib/active_support/notifications.rb
@@ -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]