`ActionView::Base.annotate_template_file_names` only annotates HTML output.
In testing https://github.com/rails/rails/pull/38848 in the GitHub monolith, we realized that we probably should only be annotating HTML output with these comments, at least in their current format. By passing `format` to `erb_implementation`, we set ourselves up to eventually support annotations for other formats as well.
Showing
想要评论请 注册 或 登录