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 🔥 Rails asset id support 2012-10-15 09:47:16 -05:00
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 avoid empty api pages 2012-04-08 01:56:41 +05:30
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