From 3d0579fc03fe4adc97c770f148e035ee75745648 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Wed, 9 Feb 2011 13:46:47 -0800 Subject: speed up notification publishing by writing the delegate method --- activesupport/lib/active_support/notifications.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'activesupport/lib/active_support/notifications.rb') 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] -- cgit v1.2.3