Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement spot and don't use
keep_script_lines
in Ruby 3.2
We want to use error highlight with eval'd code, specifically ERB templates. Previously we could only get the information we needed by setting `keep_script_lines` to true. In Ruby 3.2 and error_highlight we added the ability to get this information without setting `keep_script_lines`. This change implements that new behavior for Rails. I removed the script line changes to support this in 3.1 because it is not in any released version. Ruby change: ruby/ruby#6593 Erorr highlight change: ruby/error_highlight#26 Co-authored-by: Aaron Patterson <tenderlove@ruby-lang.org>
- Loading branch information
1 parent
717d53e
commit d9dd1c5
Showing
4 changed files
with
38 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters