diff --git a/railties/lib/rails/generators/rails/app/templates/Gemfile.tt b/railties/lib/rails/generators/rails/app/templates/Gemfile.tt index 09d6cfe4813..1937e222833 100644 --- a/railties/lib/rails/generators/rails/app/templates/Gemfile.tt +++ b/railties/lib/rails/generators/rails/app/templates/Gemfile.tt @@ -50,8 +50,8 @@ group :development do <%- end -%> # Speed up commands on slow machines / big apps [https://github.com/rails/spring] # gem "spring" - <%- if RUBY_VERSION >= "3.1" && RUBY_VERSION < "3.2" -%> + gem "error_highlight", ">= 0.4.0", platforms: [:ruby] <%- end -%> end