diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2013-05-13 15:54:45 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-05-13 15:54:45 -0700 |
commit | 9caf0cf9c8c7b42737ae78c470a5dd2f583ada75 (patch) | |
tree | 67c5a81355afb8aff3397178562cc88aa1ff5948 /activesupport | |
parent | b308f0d4f160307d03c5c7816d536042dc69941d (diff) | |
download | rails-9caf0cf9c8c7b42737ae78c470a5dd2f583ada75.tar.gz rails-9caf0cf9c8c7b42737ae78c470a5dd2f583ada75.tar.bz2 rails-9caf0cf9c8c7b42737ae78c470a5dd2f583ada75.zip |
we never pass blocks, so remove this
Diffstat (limited to 'activesupport')
-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 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) } |