Commit a73e58f7 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

draper raise now RuntimeError instead of NoMethodError

parent dbcf4144
...@@ -126,7 +126,7 @@ module ExtractsPath ...@@ -126,7 +126,7 @@ module ExtractsPath
@tree = TreeDecorator.new(@tree) @tree = TreeDecorator.new(@tree)
raise InvalidPathError if @tree.invalid? raise InvalidPathError if @tree.invalid?
rescue NoMethodError, InvalidPathError rescue RuntimeError, NoMethodError, InvalidPathError
not_found! not_found!
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment