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 /railties/lib/rails/bootstrap.rb | |
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 'railties/lib/rails/bootstrap.rb')
-rw-r--r-- | railties/lib/rails/bootstrap.rb | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/railties/lib/rails/bootstrap.rb b/railties/lib/rails/bootstrap.rb index 99a5ddeb8a..5d9165bf9a 100644 --- a/railties/lib/rails/bootstrap.rb +++ b/railties/lib/rails/bootstrap.rb @@ -38,11 +38,6 @@ module Rails config.load_once_paths.freeze end - # TODO: Wrap in deprecation warning, everyone should be using Rails.env now - initializer :set_rails_env do - silence_warnings { Object.const_set "RAILS_ENV", Rails.env } - end - # Create tmp directories initializer :ensure_tmp_directories_exist do %w(cache pids sessions sockets).each do |dir_to_make| @@ -83,9 +78,6 @@ module Rails ) logger end - - # TODO: Wrap it in a deprecation proxy - silence_warnings { Object.const_set "RAILS_DEFAULT_LOGGER", Rails.logger } end # Sets the logger for Active Record, Action Controller, and Action Mailer |