1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionview/lib/action_view/template
Guilherme Mansur 526a5eb10c Empty array instead of nil for source_extract
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>
2019-07-14 15:04:25 -04:00
..
handlers Enable Layout/EmptyLinesAroundAccessModifier cop 2019-06-13 12:00:45 +09:00
sources Add ActionView::Template::Sources::File 2019-04-04 15:07:14 -07:00
error.rb Empty array instead of nil for source_extract 2019-07-14 15:04:25 -04:00
handlers.rb active_support/deprecation has to be already required via active_support/rails.rb 2019-07-12 18:34:07 +09:00
html.rb active_support/deprecation has to be already required via active_support/rails.rb 2019-07-12 18:34:07 +09:00
inline.rb
raw_file.rb [ci skip] Updated the doc after renaming Template::File -> Template::RawFile in #35826 2019-04-02 14:03:43 +05:30
resolver.rb 2019-06-15 15:19:13 +09:00
sources.rb Add ActionView::Template::Sources::File 2019-04-04 15:07:14 -07:00
text.rb Templates have one format 2019-02-25 13:18:44 -08:00
types.rb