Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Ruby 1.9: be sure to explicitly reference toplevel constants within B…

…asicObject deprecation proxies
  • Loading branch information...
commit f98694b624749488d9cc6ff6829d437df4bca1bf 1 parent 1ac2083
@jeremy jeremy authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 railties/lib/rails/deprecation.rb
View
6 railties/lib/rails/deprecation.rb
@@ -27,7 +27,7 @@ def method_missing(meth, *args, &block)
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
Please sign in to comment.
Something went wrong with that request. Please try again.