Permalink
Browse files

we never pass blocks, so remove this

  • Loading branch information...
1 parent b308f0d commit 9caf0cf9c8c7b42737ae78c470a5dd2f583ada75 @tenderlove tenderlove committed May 13, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 activesupport/lib/active_support/callbacks.rb
@@ -250,7 +250,7 @@ def invert_lambda(l)
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) }

0 comments on commit 9caf0cf

Please sign in to comment.