From 1e672227a23afbb9f319a0aefa0b0ca3495fa1c6 Mon Sep 17 00:00:00 2001 From: Azul Date: Mon, 21 Nov 2016 16:14:38 +0100 Subject: bugfix: handle couch 404s our special error handler for json requests would turn all exceptions into 500s - removed it. now the rescue_responses can do their thing again. --- lib/extensions/couchrest.rb | 6 ------ 1 file changed, 6 deletions(-) (limited to 'lib') diff --git a/lib/extensions/couchrest.rb b/lib/extensions/couchrest.rb index 4578926..1734f3b 100644 --- a/lib/extensions/couchrest.rb +++ b/lib/extensions/couchrest.rb @@ -78,10 +78,4 @@ module CouchRest end - class ModelRailtie - config.action_dispatch.rescue_responses.merge!( - 'CouchRest::Model::DocumentNotFound' => :not_found, - 'CouchRest::NotFound' => :not_found - ) - end end -- cgit v1.2.3