From 89369355e02878ae9015dcd1a4a343778dbb7a32 Mon Sep 17 00:00:00 2001 From: Adrian Macneil Date: Wed, 21 May 2014 14:41:24 -0700 Subject: [PATCH] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 73f4323e17..dff9ed9e8c 100644 --- a/README.md +++ b/README.md @@ -1040,11 +1040,11 @@ rescue_from APIErrors::ParentError do |e| end ``` -To only rescue the base exception class, set `rescue_subclasses: false`. -The code below will rescue exceptions of type `RuntimeError` but _not_ its subclasses. +By default, Grape will only rescue the base exception class. To rescue subclasses, set `rescue_subclasses: true`. +The code below will rescue exceptions of type `RuntimeError` and all its subclasses. ```ruby -rescue_from RuntimeError, rescue_subclasses: false do |e| +rescue_from RuntimeError, rescue_subclasses: true do |e| Rack::Response.new( status: e.status, message: e.message,