<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -287,6 +287,14 @@ module ActiveSupport
         when Proc
           @klass.send(:define_method, method_name, &amp;filter)
           method_name &lt;&lt; (filter.arity == 1 ? &quot;(self)&quot; : &quot;&quot;)
+        when Method
+          @klass.send(:define_method, &quot;#{method_name}_method&quot;) { filter }
+          @klass.class_eval &lt;&lt;-RUBY_EVAL, __FILE__, __LINE__ + 1
+            def #{method_name}(&amp;blk)
+              #{method_name}_method.call(self, &amp;blk)
+            end
+          RUBY_EVAL
+          method_name
         when String
           @klass.class_eval &lt;&lt;-RUBY_EVAL
             def #{method_name}</diff>
      <filename>activesupport/lib/active_support/new_callbacks.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>10085114ce7ec6bc967fa701c49ef218f666efb5</id>
    </parent>
  </parents>
  <author>
    <name>Pratik Naik</name>
    <email>pratiknaik@gmail.com</email>
  </author>
  <url>http://github.com/technoweenie/rails/commit/2f59066470193c6219dfd958fc5d8096a2ddee68</url>
  <id>2f59066470193c6219dfd958fc5d8096a2ddee68</id>
  <committed-date>2009-05-26T04:09:33-07:00</committed-date>
  <authored-date>2009-05-26T04:09:33-07:00</authored-date>
  <message>Support Method callbacks</message>
  <tree>659ff912c25ba4b6601d76946a3f97c025ad3405</tree>
  <committer>
    <name>Pratik Naik</name>
    <email>pratiknaik@gmail.com</email>
  </committer>
</commit>
