From 9caf0cf9c8c7b42737ae78c470a5dd2f583ada75 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Mon, 13 May 2013 15:54:45 -0700 Subject: we never pass blocks, so remove this --- activesupport/lib/active_support/callbacks.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activesupport/lib/active_support/callbacks.rb b/activesupport/lib/active_support/callbacks.rb index fc797262d9..d175465d4d 100644 --- a/activesupport/lib/active_support/callbacks.rb +++ b/activesupport/lib/active_support/callbacks.rb @@ -250,7 +250,7 @@ module ActiveSupport def make_lambda(filter) case filter when Symbol - lambda { |target, _, &blk| target.send filter, &blk } + lambda { |target, _| target.send filter } when String l = eval "lambda { |value| #{filter} }" lambda { |target, value| target.instance_exec(value, &l) } -- cgit v1.2.3