diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-02-09 13:46:47 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-02-09 13:46:47 -0800 |
commit | 3d0579fc03fe4adc97c770f148e035ee75745648 (patch) | |
tree | c185e34fd624238df358996aa67f28ac4db7be70 /activesupport | |
parent | 5548e47adbb6dda320cd09ecb696c568896aa6f1 (diff) | |
download | rails-3d0579fc03fe4adc97c770f148e035ee75745648.tar.gz rails-3d0579fc03fe4adc97c770f148e035ee75745648.tar.bz2 rails-3d0579fc03fe4adc97c770f148e035ee75745648.zip |
speed up notification publishing by writing the delegate method
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/notifications.rb | 5 |
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] |