1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/lib/abstract_controller
Iain Beeston d2876141d0 Raise ArgumentError if an unrecognised callback is skipped
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.
2015-04-03 09:37:19 +01:00
..
railties Use public Module#include, in favor of https://bugs.ruby-lang.org/issues/8846 2015-01-31 23:12:41 -05:00
asset_paths.rb
base.rb Remove ActionController::HideActions (closes #18336) 2015-01-06 23:40:45 +03:00
callbacks.rb Raise ArgumentError if an unrecognised callback is skipped 2015-04-03 09:37:19 +01:00
collector.rb Improve a couple exception messages related to variants and mime types 2013-12-03 22:23:12 -02:00
helpers.rb Merge pull request #8740 from amatsuda/missing_source_file 2015-01-02 19:19:59 -03:00
logger.rb
rendering.rb Fix a few typos [ci skip] 2015-01-03 16:36:33 +01:00
translation.rb ActionController#translate also lookups shortcut without action name 2013-10-22 18:17:05 +04:00
url_for.rb fixed a typo [ci skip] 2014-05-17 00:29:09 +09:00