Skip to content

Commit b8d24a2

Browse files
riseshiapixeltrix
authored andcommitted
Compare ruby version with correct way
1 parent c90e0aa commit b8d24a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

railties/lib/rails/ruby_version_check.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
if RUBY_VERSION < '2.2.2' && RUBY_ENGINE == 'ruby'
1+
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.2.2') && RUBY_ENGINE == 'ruby'
22
desc = defined?(RUBY_DESCRIPTION) ? RUBY_DESCRIPTION : "ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE})"
33
abort <<-end_message
44

0 commit comments

Comments
 (0)