diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2004-11-30 18:52:20 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2004-11-30 18:52:20 +0000 |
commit | d82f73ecabe71fc3814eff0bd26f4f431f690266 (patch) | |
tree | 568ad503cf10c54acd2a945c317d81887b1eb20b /railties/environments/shared_for_gem.rb | |
parent | 5b38d8557122723aa7c11c28d4c2c93464982766 (diff) | |
download | rails-d82f73ecabe71fc3814eff0bd26f4f431f690266.tar.gz rails-d82f73ecabe71fc3814eff0bd26f4f431f690266.tar.bz2 rails-d82f73ecabe71fc3814eff0bd26f4f431f690266.zip |
Abolished ActionController::Base.require_or_load in favor of require_dependency and ActiveRecord::Base.require_or_load in favor of require_association. Both methods are now also available in the global namespace when you need to require dependencies or associations outside of whats done automatically.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@32 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/environments/shared_for_gem.rb')
-rw-r--r-- | railties/environments/shared_for_gem.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/environments/shared_for_gem.rb b/railties/environments/shared_for_gem.rb index 0316522258..c8aa36a505 100644 --- a/railties/environments/shared_for_gem.rb +++ b/railties/environments/shared_for_gem.rb @@ -32,7 +32,7 @@ require_gem 'rails' # Environment-specific configuration. -ActionController::Base.require_or_load "environments/#{RAILS_ENV}" +require_dependency "environments/#{RAILS_ENV}" ActiveRecord::Base.configurations = YAML::load(File.open("#{RAILS_ROOT}/config/database.yml")) ActiveRecord::Base.establish_connection |