<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,6 +1,8 @@
 require 'active_support/notifications'
 
-ActiveSupport::Notifications.subscribe(/(read|write|cache|expire|exist)_(fragment|page)\??/) do |event|
+ActiveSupport::Notifications.subscribe(/(read|write|cache|expire|exist)_(fragment|page)\??/) do |*args|
+  event = ActiveSupport::Notifications::Event.new(*args)
+
   if logger = ActionController::Base.logger
     human_name = event.name.to_s.humanize
     logger.info(&quot;#{human_name} (%.1fms)&quot; % event.duration)</diff>
      <filename>actionpack/lib/action_controller/notifications.rb</filename>
    </modified>
    <modified>
      <diff>@@ -96,7 +96,7 @@ module ActiveSupport
 
       def subscribe
         @queue.subscribe(@pattern) do |*args|
-          yield Event.new(*args)
+          yield *args
         end
       end
     end</diff>
      <filename>activesupport/lib/active_support/notifications.rb</filename>
    </modified>
    <modified>
      <diff>@@ -52,7 +52,9 @@ class NotificationsMainTest &lt; Test::Unit::TestCase
   def setup
     @events = []
     Thread.abort_on_exception = true
-    ActiveSupport::Notifications.subscribe { |event| @events &lt;&lt; event }
+    ActiveSupport::Notifications.subscribe do |*args|
+      @events &lt;&lt; ActiveSupport::Notifications::Event.new(*args)
+    end
   end
 
   def teardown
@@ -124,7 +126,11 @@ class NotificationsMainTest &lt; Test::Unit::TestCase
 
   def test_subscriber_with_pattern
     @another = []
-    ActiveSupport::Notifications.subscribe(&quot;cache&quot;){ |event| @another &lt;&lt; event }
+
+    ActiveSupport::Notifications.subscribe(&quot;cache&quot;) do |*args|
+      @another &lt;&lt; ActiveSupport::Notifications::Event.new(*args)
+    end
+
     ActiveSupport::Notifications.instrument(:cache){ 1 }
 
     sleep(0.1)
@@ -136,7 +142,9 @@ class NotificationsMainTest &lt; Test::Unit::TestCase
 
   def test_subscriber_with_pattern_as_regexp
     @another = []
-    ActiveSupport::Notifications.subscribe(/cache/){ |event| @another &lt;&lt; event }
+    ActiveSupport::Notifications.subscribe(/cache/) do |*args|
+      @another &lt;&lt; ActiveSupport::Notifications::Event.new(*args)
+    end
 
     ActiveSupport::Notifications.instrument(:something){ 0 }
     ActiveSupport::Notifications.instrument(:cache){ 1 }
@@ -150,7 +158,9 @@ class NotificationsMainTest &lt; Test::Unit::TestCase
 
   def test_with_several_consumers_and_several_events
     @another = []
-    ActiveSupport::Notifications.subscribe { |event| @another &lt;&lt; event }
+    ActiveSupport::Notifications.subscribe do |*args|
+      @another &lt;&lt; ActiveSupport::Notifications::Event.new(*args)
+    end
 
     1.upto(100) do |i|
       ActiveSupport::Notifications.instrument(:value){ i }</diff>
      <filename>activesupport/test/notifications_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>9b67b7ba2f74067235c8bd8f9dc02fb6337eda52</id>
    </parent>
  </parents>
  <author>
    <name>Yehuda Katz</name>
    <email>wycats@gmail.com</email>
  </author>
  <url>http://github.com/samgranieri/rails/commit/cbcb947b00a7c6992cfe42c6b369e87b4fa4ee23</url>
  <id>cbcb947b00a7c6992cfe42c6b369e87b4fa4ee23</id>
  <committed-date>2009-10-27T21:04:53-07:00</committed-date>
  <authored-date>2009-10-27T21:01:31-07:00</authored-date>
  <message>AS::Notifications.subscribe blocks are now yielded the arguments to pass to AS::Notifications::Event.new</message>
  <tree>303df6f42810dc11a6dfd545c0740046ea07db6a</tree>
  <committer>
    <name>Yehuda Katz</name>
    <email>wycats@gmail.com</email>
  </committer>
</commit>
