From a73e58f70b264b36b3291bba9a8a2789235ccadb Mon Sep 17 00:00:00 2001
From: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Date: Fri, 1 Mar 2013 15:59:43 +0200
Subject: [PATCH] draper raise now RuntimeError instead of NoMethodError

---
 lib/extracts_path.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/extracts_path.rb b/lib/extracts_path.rb
index fb595e18b2401..fd0050cfd5fda 100644
--- a/lib/extracts_path.rb
+++ b/lib/extracts_path.rb
@@ -126,7 +126,7 @@ def assign_ref_vars
     @tree = TreeDecorator.new(@tree)
 
     raise InvalidPathError if @tree.invalid?
-  rescue NoMethodError, InvalidPathError
+  rescue RuntimeError, NoMethodError, InvalidPathError
     not_found!
   end
 end
-- 
GitLab