Update initializer to load Rails::VERSION as soon as possible. Closes #6698.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5624 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
Nicholas Seckar
2006-11-25 17:11:46 +00:00
parent ad62d461e8
commit cf248eae1f
2 changed files with 3 additions and 6 deletions

View File

@@ -1,5 +1,7 @@
*SVN*
* Update initializer to load Rails::VERSION as soon as possible. Closes #6698. [Nicholas Seckar]
* Added ActiveRecord::Base.clear_active_connections! in development mode so the database connection is not carried over from request to request. Some databases won't reread the schema if that doesn't happen (I'm looking at you SQLite), so you have to restart the server after each migration (= no fun) [DHH]
* Made RAILS_GEM_VERSION work for beta gems too, so specifying 1.1.6 will give you 1.1.6.4520 if available [DHH]

View File

@@ -1,6 +1,7 @@
require 'logger'
require 'set'
require File.join(File.dirname(__FILE__), 'railties_path')
require File.join(File.dirname(__FILE__), 'rails/version')
RAILS_ENV = (ENV['RAILS_ENV'] || 'development').dup unless defined?(RAILS_ENV)
@@ -76,7 +77,6 @@ module Rails
# Configuration instance.
def process
check_ruby_version
load_rails_version
set_load_path
set_connection_adapters
@@ -121,11 +121,6 @@ module Rails
require 'ruby_version_check'
end
# Rails::VERSION should always be available.
def load_rails_version
require 'rails/version'
end
# Set the <tt>$LOAD_PATH</tt> based on the value of
# Configuration#load_paths. Duplicates are removed.
def set_load_path