aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--activesupport/lib/active_support/callbacks.rb8
1 files changed, 2 insertions, 6 deletions
diff --git a/activesupport/lib/active_support/callbacks.rb b/activesupport/lib/active_support/callbacks.rb
index d869770489..ca6937eeb3 100644
--- a/activesupport/lib/active_support/callbacks.rb
+++ b/activesupport/lib/active_support/callbacks.rb
@@ -255,9 +255,7 @@ module ActiveSupport
def make_lambda(filter)
case filter
when Symbol
- lambda { |target, value, &blk|
- target.send filter, &blk
- }
+ lambda { |target, value, &blk| target.send filter, &blk }
when String
l = eval "lambda { |value| #{filter} }"
lambda { |target,value| target.instance_exec(value, &l) }
@@ -351,9 +349,7 @@ module ActiveSupport
end
lambda { |target, &block|
- value = nil
- halted = false
- callbacks.call(target, halted, value, &block)[2]
+ callbacks.call(target, false, nil, &block)[2]
}
end