diff options
author | José Valim <jose.valim@gmail.com> | 2010-01-12 14:11:47 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-01-13 01:19:22 +0100 |
commit | 1a275730b290c1f06d4e8df680d22ae1b41ab585 (patch) | |
tree | 46298bdbf71d7a3afeaa2de6bbc37008a12b37fd /activerecord/lib/active_record/connection_adapters/abstract | |
parent | 9dd4c79d6148890f49949686e709cfb035755068 (diff) | |
download | rails-1a275730b290c1f06d4e8df680d22ae1b41ab585.tar.gz rails-1a275730b290c1f06d4e8df680d22ae1b41ab585.tar.bz2 rails-1a275730b290c1f06d4e8df680d22ae1b41ab585.zip |
Set deprecation warnings for RAILS_ENV and RAILS_DEFAULT_LOGGER.
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/abstract')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb b/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb index bbc290f721..53cef19681 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb @@ -51,8 +51,8 @@ module ActiveRecord def self.establish_connection(spec = nil) case spec when nil - raise AdapterNotSpecified unless defined? RAILS_ENV - establish_connection(RAILS_ENV) + raise AdapterNotSpecified unless defined?(Rails.env) + establish_connection(Rails.env) when ConnectionSpecification @@connection_handler.establish_connection(name, spec) when Symbol, String |