diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-09-15 08:25:46 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-09-15 08:25:46 +0000 |
commit | 3e7b597ff4e6912818c5a9cc7498d7c03fe6d222 (patch) | |
tree | 9141136387ab4fcb46944664d551de7edc0ee1e5 /railties/lib | |
parent | 428e0f4e6321687d63ce9a431691e33971924bbc (diff) | |
download | rails-3e7b597ff4e6912818c5a9cc7498d7c03fe6d222.tar.gz rails-3e7b597ff4e6912818c5a9cc7498d7c03fe6d222.tar.bz2 rails-3e7b597ff4e6912818c5a9cc7498d7c03fe6d222.zip |
Cant use silence_warnings before active support is loaded
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2250 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/initializer.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/railties/lib/initializer.rb b/railties/lib/initializer.rb index 739a55f501..4ab29f98b9 100644 --- a/railties/lib/initializer.rb +++ b/railties/lib/initializer.rb @@ -58,8 +58,7 @@ module Rails end def set_connection_adapters - adapters = configuration.connection_adapters - silence_warnings { Object.const_set("RAILS_CONNECTION_ADAPTERS", adapters) if adapters } + Object.const_set("RAILS_CONNECTION_ADAPTERS", configuration.connection_adapters) if configuration.connection_adapters end def require_frameworks |