aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/ruby_version_check.rb
blob: 62d7804bf31df1bda8c2d51a1031528b6d772a50 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
min_release  = "1.8.7"
ruby_release = "#{RUBY_VERSION} (#{RUBY_RELEASE_DATE})"
if ruby_release < min_release
  abort <<-end_message

    Rails requires Ruby version #{min_release} or later.
    You're running #{ruby_release}; please upgrade to continue.

  end_message
end