Commit 7661c317 by Jon Yurek

Removed a call to defined? in place of Object.const_defined?

parent 0f47993c
......@@ -72,7 +72,7 @@ def rebuild_class options = {}
end
def temporary_rails_env(new_env)
old_env = defined?(RAILS_ENV) ? RAILS_ENV : nil
old_env = Object.const_defined?("RAILS_ENV") ? RAILS_ENV : nil
silence_warnings do
Object.const_set("RAILS_ENV", new_env)
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment