diff options
author | Robin Dupret <robin.dupret@gmail.com> | 2017-05-21 21:34:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-21 21:34:47 +0200 |
commit | 0cbb130cf56812328f8aad305f2ef30c83ea33ad (patch) | |
tree | 31cd062e0e626ef978dfaadf4d6c1634ed4b985c /guides/source | |
parent | 36d53f557d6478cd47ca5134468b70d8a1303664 (diff) | |
parent | 4f3955657736796664aa8d6f6d149ef9b213b058 (diff) | |
download | rails-0cbb130cf56812328f8aad305f2ef30c83ea33ad.tar.gz rails-0cbb130cf56812328f8aad305f2ef30c83ea33ad.tar.bz2 rails-0cbb130cf56812328f8aad305f2ef30c83ea33ad.zip |
Merge pull request #29072 from dixpac/dixpac/add_documentation_for_validate_and_callback_order_of_execution
Improving docs for callbacks execution order [ci skip]
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/action_controller_overview.md | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/guides/source/action_controller_overview.md b/guides/source/action_controller_overview.md index 5d987264f5..22537f960c 100644 --- a/guides/source/action_controller_overview.md +++ b/guides/source/action_controller_overview.md @@ -715,6 +715,9 @@ end Now, the `LoginsController`'s `new` and `create` actions will work as before without requiring the user to be logged in. The `:only` option is used to skip this filter only for these actions, and there is also an `:except` option which works the other way. These options can be used when adding filters too, so you can add a filter which only runs for selected actions in the first place. +NOTE: Calling the same filter multiple times with different options will not work, +since the last filter definition will overwrite the previous ones. + ### After Filters and Around Filters In addition to "before" filters, you can also run filters after an action has been executed, or both before and after. |