aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-03-21 02:08:58 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-03-21 02:08:58 +0000
commit30f401114e753ed6676201a20088470b940ee35a (patch)
tree9e559a43f98924053d7a72e7ffc25321d7af6d98 /railties
parent476f26ee908b9d42a08174aaa3ed39db041b54cd (diff)
downloadrails-30f401114e753ed6676201a20088470b940ee35a.tar.gz
rails-30f401114e753ed6676201a20088470b940ee35a.tar.bz2
rails-30f401114e753ed6676201a20088470b940ee35a.zip
Expanded the requires again and included the load paths
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@959 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties')
-rw-r--r--railties/environments/environment.rb23
1 files changed, 21 insertions, 2 deletions
diff --git a/railties/environments/environment.rb b/railties/environments/environment.rb
index 0f047c3323..8345965ae3 100644
--- a/railties/environments/environment.rb
+++ b/railties/environments/environment.rb
@@ -11,7 +11,21 @@ ADDITIONAL_LOAD_PATHS.concat(Dir["#{RAILS_ROOT}/components/[_a-z]*"])
# Followed by the standard includes.
ADDITIONAL_LOAD_PATHS.concat %w(
- app app/models app/controllers app/helpers app/apis config components lib vendor
+ app
+ app/models
+ app/controllers
+ app/helpers
+ app/apis
+ config
+ components
+ lib
+ vendor
+ vendor/rails/railties/lib
+ vendor/rails/actionpack/lib
+ vendor/rails/activesupport/lib
+ vendor/rails/activerecord/lib
+ vendor/rails/actionmailer/lib
+ vendor/rails/actionwebservice/lib
).map { |dir| "#{RAILS_ROOT}/#{dir}" }.select { |dir| File.directory?(dir) }
# Prepend to $LOAD_PATH
@@ -31,7 +45,12 @@ if rails_files.all? { |f| File.file?(f) }
rails_files.each { |f| require f }
else
require 'rubygems'
- %w( activesupport activerecord actionpack actionmailer actionwebservice rails ).each { |gem| require_gem(gem) }
+ require_gem 'activesupport'
+ require_gem 'activerecord'
+ require_gem 'actionpack'
+ require_gem 'actionmailer'
+ require_gem 'actionwebservice'
+ require_gem 'rails'
end
# Environment-specific configuration.