From d2c0571bf6161e859ccc9c91a7d87b2bffa35dd5 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Mon, 13 May 2013 16:53:08 -0700 Subject: Revert "we never pass blocks, so remove this" This reverts commit 9caf0cf9c8c7b42737ae78c470a5dd2f583ada75. --- activesupport/lib/active_support/callbacks.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activesupport/lib') diff --git a/activesupport/lib/active_support/callbacks.rb b/activesupport/lib/active_support/callbacks.rb index 8422d4f5f3..fa37b24f51 100644 --- a/activesupport/lib/active_support/callbacks.rb +++ b/activesupport/lib/active_support/callbacks.rb @@ -251,7 +251,7 @@ module ActiveSupport def make_lambda(filter) case filter when Symbol - lambda { |target, _| target.send filter } + lambda { |target, _, &blk| target.send filter, &blk } when String l = eval "lambda { |value| #{filter} }" lambda { |target, value| target.instance_exec(value, &l) } -- cgit v1.2.3