draper raise now RuntimeError instead of NoMethodError
This commit is contained in:
parent
dbcf4144ee
commit
a73e58f70b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue