rails/actionpack/lib
eileencodes d9dd1c59d0
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: https://github.com/ruby/ruby/pull/6593
Erorr highlight change: https://github.com/ruby/error_highlight/pull/26

Co-authored-by: Aaron Patterson <tenderlove@ruby-lang.org>
2023-01-13 16:20:09 -05:00
..
abstract_controller Document ActionController::Rendering#render [ci-skip] 2023-01-08 15:47:31 -06:00
action_controller Fix rare conflict of default_render with Minitest::Mock 2023-01-11 18:24:15 +02:00
action_dispatch Implement spot and don't use keep_script_lines in Ruby 3.2 2023-01-13 16:20:09 -05:00
action_pack Fix #version docs and some typos 2022-03-16 01:48:37 +05:30
abstract_controller.rb Add {Abstract,Action}Controller.deprecator 2022-10-27 16:20:53 -05:00
action_controller.rb Add {Abstract,Action}Controller.deprecator 2022-10-27 16:20:53 -05:00
action_dispatch.rb Add ActionDispatch.deprecator 2022-10-27 17:11:02 -05:00
action_pack.rb Bump license years to 2022 [ci-skip] 2022-01-01 15:22:15 +09:00