aboutsummaryrefslogtreecommitdiffstats
path: root/railties/dispatches
diff options
context:
space:
mode:
Diffstat (limited to 'railties/dispatches')
-rwxr-xr-xrailties/dispatches/dispatch.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/dispatches/dispatch.rb b/railties/dispatches/dispatch.rb
index 6ac11bbd59..1f0914f8d0 100755
--- a/railties/dispatches/dispatch.rb
+++ b/railties/dispatches/dispatch.rb
@@ -1,6 +1,6 @@
#!/usr/local/bin/ruby
-require File.dirname(__FILE__) + "/../config/environment"
+require File.dirname(__FILE__) + "/../config/environment" unless defined?(RAILS_ROOT)
# If you're using RubyGems and mod_ruby, this require should be changed to an absolute path one, like:
# "/usr/local/lib/ruby/gems/1.8/gems/rails-0.8.0/lib/dispatcher" -- otherwise performance is severely impaired