aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/initialization.textile
diff options
context:
space:
mode:
authorOscar Del Ben <info@oscardelben.com>2012-05-24 08:29:33 -0700
committerOscar Del Ben <info@oscardelben.com>2012-05-24 08:53:03 -0700
commitf819b90a13fab93b5ea819fb8d9e2dd1b33780e4 (patch)
tree5ead26b9c439323eac08cd15f49ffea7bcf39802 /guides/source/initialization.textile
parentf2c60c79416e449adb0abd663be3a5579615f722 (diff)
downloadrails-f819b90a13fab93b5ea819fb8d9e2dd1b33780e4.tar.gz
rails-f819b90a13fab93b5ea819fb8d9e2dd1b33780e4.tar.bz2
rails-f819b90a13fab93b5ea819fb8d9e2dd1b33780e4.zip
[Guides] Update ruby version check
Diffstat (limited to 'guides/source/initialization.textile')
-rw-r--r--guides/source/initialization.textile10
1 files changed, 8 insertions, 2 deletions
diff --git a/guides/source/initialization.textile b/guides/source/initialization.textile
index 097e577cca..d627c37400 100644
--- a/guides/source/initialization.textile
+++ b/guides/source/initialization.textile
@@ -544,13 +544,19 @@ First off the line is the +rails+ require itself.
h4. +railties/lib/rails.rb+
-This file is responsible for the initial definition of the +Rails+ module and, rather than defining the autoloads like +ActiveSupport+, +ActionDispatch+ and so on, it actually defines other functionality. Such as the +root+, +env+ and +application+ methods which are extremely useful in Rails 3 applications.
+This file is responsible for the initial definition of the +Rails+
+module and, rather than defining the autoloads like +ActiveSupport+,
++ActionDispatch+ and so on, it actually defines other functionality.
+Such as the +root+, +env+ and +application+ methods which are extremely
+useful in Rails 4 applications.
However, before all that takes place the +rails/ruby_version_check+ file is required first.
h4. +railties/lib/rails/ruby_version_check.rb+
-This file simply checks if the Ruby version is less than 1.8.7 or is 1.9.1 and raises an error if that is the case. Rails 3 simply will not run on earlier versions of Ruby than 1.8.7 or 1.9.1.
+This file simply checks if the Ruby version is less than 1.9.3 and
+raises an error if that is the case. Rails 4 simply will not run on
+earlier versions of Ruby 1.9.3
NOTE: You should always endeavor to run the latest version of Ruby with your Rails applications. The benefits are many, including security fixes and the like, and very often there is a speed increase associated with it. The caveat is that you could have code that potentially breaks on the latest version, which should be fixed to work on the latest version rather than kept around as an excuse not to upgrade.