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:
parent
d53b5f0739
commit
19b9f7ba33
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue