diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2010-08-26 23:17:03 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2010-08-26 23:17:03 -0700 |
commit | f98694b624749488d9cc6ff6829d437df4bca1bf (patch) | |
tree | 5b662ed0a4120711c52db01023ea2ea26baed08e /railties/lib/rails/deprecation.rb | |
parent | 1ac20839a7609acf1f401de58d25bd7a920d4269 (diff) | |
download | rails-f98694b624749488d9cc6ff6829d437df4bca1bf.tar.gz rails-f98694b624749488d9cc6ff6829d437df4bca1bf.tar.bz2 rails-f98694b624749488d9cc6ff6829d437df4bca1bf.zip |
Ruby 1.9: be sure to explicitly reference toplevel constants within BasicObject deprecation proxies
Diffstat (limited to 'railties/lib/rails/deprecation.rb')
-rw-r--r-- | railties/lib/rails/deprecation.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/railties/lib/rails/deprecation.rb b/railties/lib/rails/deprecation.rb index 3cf28e0818..37896e0cae 100644 --- a/railties/lib/rails/deprecation.rb +++ b/railties/lib/rails/deprecation.rb @@ -27,7 +27,7 @@ module Rails end end - DeprecatedConstant.deprecate("RAILS_ROOT", "Rails.root.to_s") - DeprecatedConstant.deprecate("RAILS_ENV", "Rails.env") - DeprecatedConstant.deprecate("RAILS_DEFAULT_LOGGER", "Rails.logger") + DeprecatedConstant.deprecate("RAILS_ROOT", "::Rails.root.to_s") + DeprecatedConstant.deprecate("RAILS_ENV", "::Rails.env") + DeprecatedConstant.deprecate("RAILS_DEFAULT_LOGGER", "::Rails.logger") end |