1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

All libraries should link against the independent active support

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@625 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
David Heinemeier Hansson 2005-02-15 16:15:02 +00:00
parent dc3d6eb9b4
commit ca175ed7c9
8 changed files with 6 additions and 24 deletions

View file

@ -24,18 +24,10 @@
$:.unshift(File.dirname(__FILE__))
begin
require 'active_support/core_ext'
require 'active_support/clean_logger'
require 'active_support/misc'
require 'active_support/dependencies'
require 'active_support'
rescue LoadError
require 'rubygems'
require_gem 'activesupport'
require 'active_support/core_ext'
require 'active_support/clean_logger'
require 'active_support/misc'
require 'active_support/dependencies'
end
require 'action_controller/base'

View file

@ -25,18 +25,10 @@
$:.unshift(File.dirname(__FILE__))
begin
require 'active_support/core_ext'
require 'active_support/clean_logger'
require 'active_support/misc'
require 'active_support/dependencies'
require 'active_support'
rescue LoadError
require 'rubygems'
require_gem 'activesupport'
require 'active_support/core_ext'
require 'active_support/clean_logger'
require 'active_support/misc'
require 'active_support/dependencies'
end
require 'active_record/base'

View file

@ -30,6 +30,7 @@ ADDITIONAL_LOAD_PATHS.reverse.each { |dir| $:.unshift(dir) if File.directory?(di
# Require Rails libraries.
require 'active_support'
require 'active_record'
require 'action_controller'
require 'action_mailer'

View file

@ -25,6 +25,7 @@ ADDITIONAL_LOAD_PATHS.reverse.each { |dir| $:.unshift(dir) if File.directory?(di
# Require Rails gems.
require 'rubygems'
require_gem 'activesupport'
require_gem 'activerecord'
require_gem 'actionpack'
require_gem 'actionmailer'

View file

@ -24,7 +24,7 @@
require 'breakpoint'
class Dispatcher
class <<self
class << self
def dispatch(cgi = CGI.new, session_options = ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS)
begin
prepare_application

View file

@ -23,8 +23,7 @@
$:.unshift(File.dirname(__FILE__))
require 'active_support/core_ext'
require 'active_support'
require 'rails_generator/base'
require 'rails_generator/lookup'

View file

@ -1,5 +1,3 @@
require 'active_support/class_attribute_accessors'
require 'active_support/inflector'
require File.dirname(__FILE__) + '/options'
require File.dirname(__FILE__) + '/manifest'
require File.dirname(__FILE__) + '/spec'

View file

@ -1,5 +1,4 @@
require 'optparse'
require 'active_support/class_inheritable_attributes'
module Rails
module Generator