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:
parent
dc3d6eb9b4
commit
ca175ed7c9
8 changed files with 6 additions and 24 deletions
|
@ -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'
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -23,8 +23,7 @@
|
|||
|
||||
$:.unshift(File.dirname(__FILE__))
|
||||
|
||||
require 'active_support/core_ext'
|
||||
|
||||
require 'active_support'
|
||||
|
||||
require 'rails_generator/base'
|
||||
require 'rails_generator/lookup'
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
require 'optparse'
|
||||
require 'active_support/class_inheritable_attributes'
|
||||
|
||||
module Rails
|
||||
module Generator
|
||||
|
|
Loading…
Reference in a new issue