mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
526a5eb10c
The source_extract method will return nil when it can't find the file name in the backtrace, methods that consume this method expect an array and the nil ends up causing type errors down the road like it happened here: #36341. This patch refactors the source_extract method so that it returns an empty array instead of nil when it can't find the source code. Co-authored-by: Kasper Timm Hansen <kaspth@gmail.com> |
||
---|---|---|
.. | ||
handlers | ||
sources | ||
error.rb | ||
handlers.rb | ||
html.rb | ||
inline.rb | ||
raw_file.rb | ||
resolver.rb | ||
sources.rb | ||
text.rb | ||
types.rb |