Skip to content
Snippets Groups Projects
Commit a73e58f7 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

draper raise now RuntimeError instead of NoMethodError

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