mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
d2876141d0
At present, if you skip a callback that hasn't been defined, activesupport callbacks silently does nothing. However, it's easy to mistype the name of a callback and mistakenly think that it's being skipped, when it is not. This problem even exists in the current test suite. CallbacksTest::SkipCallbacksTest#test_skip_person attempts to skip callbacks that were never set up. This PR changes `skip_callback` to raise an `ArgumentError` if the specified callback cannot be found. |
||
---|---|---|
.. | ||
railties | ||
asset_paths.rb | ||
base.rb | ||
callbacks.rb | ||
collector.rb | ||
helpers.rb | ||
logger.rb | ||
rendering.rb | ||
translation.rb | ||
url_for.rb |