aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/callbacks.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2013-05-13 15:54:45 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2013-05-13 15:54:45 -0700
commit9caf0cf9c8c7b42737ae78c470a5dd2f583ada75 (patch)
tree67c5a81355afb8aff3397178562cc88aa1ff5948 /activesupport/lib/active_support/callbacks.rb
parentb308f0d4f160307d03c5c7816d536042dc69941d (diff)
downloadrails-9caf0cf9c8c7b42737ae78c470a5dd2f583ada75.tar.gz
rails-9caf0cf9c8c7b42737ae78c470a5dd2f583ada75.tar.bz2
rails-9caf0cf9c8c7b42737ae78c470a5dd2f583ada75.zip
we never pass blocks, so remove this
Diffstat (limited to 'activesupport/lib/active_support/callbacks.rb')
-rw-r--r--activesupport/lib/active_support/callbacks.rb2
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) }