draper raise now RuntimeError instead of NoMethodError

This commit is contained in:
Dmitriy Zaporozhets 2013-03-01 15:59:43 +02:00
parent dbcf4144ee
commit a73e58f70b

View file

@ -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