Skip to content

Commit

Permalink
Revert "Use cached instance of ruby_version"
Browse files Browse the repository at this point in the history
This reverts commit d247f49.
  • Loading branch information
yahonda committed Feb 28, 2023
1 parent 70e9c89 commit 1970309
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion railties/lib/rails/ruby_version_check.rb
Expand Up @@ -2,7 +2,7 @@

# :stopdoc:

if Gem.ruby_version < "2.7.0" && RUBY_ENGINE == "ruby"
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new("2.7.0") && RUBY_ENGINE == "ruby"
desc = defined?(RUBY_DESCRIPTION) ? RUBY_DESCRIPTION : "ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE})"
abort <<-end_message
Expand Down

0 comments on commit 1970309

Please sign in to comment.