1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

pass the actual filter, not a string

This commit is contained in:
Aaron Patterson 2013-05-13 12:05:22 -07:00
parent d53b5f0739
commit 19b9f7ba33
2 changed files with 2 additions and 2 deletions

View file

@ -171,7 +171,7 @@ module ActiveSupport
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 file

@ -718,7 +718,7 @@ module CallbacksTest
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