aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/ruby_version_check.rb
blob: 4536fedaa3f68d6ad2a9bd2debd10a5fef538932 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
if RUBY_VERSION < '1.9.3'
  desc = defined?(RUBY_DESCRIPTION) ? RUBY_DESCRIPTION : "ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE})"
  abort <<-end_message

    Rails 4 requires Ruby 1.9.3+.

    You're running
      #{desc}

    Please upgrade to continue.

  end_message
end