Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

pass the actual filter, not a string

  • Loading branch information...
commit 19b9f7ba334108bd669ec6ae3bdf11d707a7d689 1 parent d53b5f0
@tenderlove tenderlove authored
View
2  activesupport/lib/active_support/callbacks.rb
@@ -171,7 +171,7 @@ def apply(next_callback)
result = user_callback.call target, value
env.halted = halted_lambda.call result
if env.halted
- target.send :halted_callback_hook, @filter.inspect
+ target.send :halted_callback_hook, @filter
end
end
next_callback.call env
View
2  activesupport/test/callbacks_test.rb
@@ -718,7 +718,7 @@ def test_termination
def test_termination_invokes_hook
terminator = CallbackTerminator.new
terminator.save
- assert_equal ":second", terminator.halted
+ assert_equal :second, terminator.halted
end
def test_block_never_called_if_terminated
Please sign in to comment.
Something went wrong with that request. Please try again.