aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAbdelkader Boudih <terminale@gmail.com>2015-04-01 16:46:41 +0100
committerAbdelkader Boudih <terminale@gmail.com>2015-04-01 16:46:41 +0100
commitc91581ffee2fcf9b3d26f5ebc882127b83239800 (patch)
treedc07502e639b260d0df8b11a07756e09d0b7303b
parentf0590c4c7a7b46ef787a871c31694bd6e679aefe (diff)
parenta21a8192aa2adf05cf4e7b8c99774c29ca1e8fbe (diff)
downloadrails-c91581ffee2fcf9b3d26f5ebc882127b83239800.tar.gz
rails-c91581ffee2fcf9b3d26f5ebc882127b83239800.tar.bz2
rails-c91581ffee2fcf9b3d26f5ebc882127b83239800.zip
Merge pull request #19610 from yui-knk/fix/suppress
[ci skip] Replace `reraised` with `not captured`
-rw-r--r--guides/source/active_support_core_extensions.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/active_support_core_extensions.md b/guides/source/active_support_core_extensions.md
index f3d8e05089..5fb577e256 100644
--- a/guides/source/active_support_core_extensions.md
+++ b/guides/source/active_support_core_extensions.md
@@ -475,7 +475,7 @@ The methods `silence_warnings` and `enable_warnings` change the value of `$VERBO
silence_warnings { Object.const_set "RAILS_DEFAULT_LOGGER", logger }
```
-Silencing exceptions is also possible with `suppress`. This method receives an arbitrary number of exception classes. If an exception is raised during the execution of the block and is `kind_of?` any of the arguments, `suppress` captures it and returns silently. Otherwise the exception is reraised:
+Silencing exceptions is also possible with `suppress`. This method receives an arbitrary number of exception classes. If an exception is raised during the execution of the block and is `kind_of?` any of the arguments, `suppress` captures it and returns silently. Otherwise the exception is not captured:
```ruby
# If the user is locked, the increment is lost, no big deal.