diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2013-05-13 16:53:08 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-05-13 16:53:08 -0700 |
commit | d2c0571bf6161e859ccc9c91a7d87b2bffa35dd5 (patch) | |
tree | 2640188baddd8f6680cce2a7e774315ca362a271 /activesupport/lib | |
parent | ccbefff684d63c71e13fbb7507fa41d3400c0c95 (diff) | |
download | rails-d2c0571bf6161e859ccc9c91a7d87b2bffa35dd5.tar.gz rails-d2c0571bf6161e859ccc9c91a7d87b2bffa35dd5.tar.bz2 rails-d2c0571bf6161e859ccc9c91a7d87b2bffa35dd5.zip |
Revert "we never pass blocks, so remove this"
This reverts commit 9caf0cf9c8c7b42737ae78c470a5dd2f583ada75.
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/callbacks.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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) } |