Commit a73e58f70b264b36b3291bba9a8a2789235ccadb
1 parent
dbcf4144
Exists in
master
and in
4 other branches
draper raise now RuntimeError instead of NoMethodError
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/extracts_path.rb
... | ... | @@ -126,7 +126,7 @@ module ExtractsPath |
126 | 126 | @tree = TreeDecorator.new(@tree) |
127 | 127 | |
128 | 128 | raise InvalidPathError if @tree.invalid? |
129 | - rescue NoMethodError, InvalidPathError | |
129 | + rescue RuntimeError, NoMethodError, InvalidPathError | |
130 | 130 | not_found! |
131 | 131 | end |
132 | 132 | end | ... | ... |