Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
  • Loading branch information...
commit 3e7b597ff4e6912818c5a9cc7498d7c03fe6d222 1 parent 428e0f4
@dhh dhh authored
View
2  railties/environments/environment.rb
@@ -19,7 +19,7 @@
# config.log_level = :debug
# Only include the connection adapters you're actually going to use
- # config.connection_adapters = %w( mysql sqlite )
+ # config.connection_adapters = %w( mysql postgresql sqlite sqlserver db2 oci )
# Use the database for sessions instead of the file system
# (create the session table with 'rake create_sessions_table')
View
3  railties/lib/initializer.rb
@@ -58,8 +58,7 @@ def set_load_path
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
Please sign in to comment.
Something went wrong with that request. Please try again.