Don't depend on Rails.root as thin does not have it before app require

This commit is contained in:
danielgrippi 2011-06-02 12:18:22 -07:00
parent 918284a8f8
commit 23dd975551

View file

@ -3,7 +3,7 @@
# the COPYRIGHT file.
# use newrelic if configured via config/newrelic.yml
require 'newrelic_rpm' if File.exists?(Rails.root.to_s << '/config/newrelic.yml')
require 'newrelic_rpm' if File.exists?(File.expand_path('../newrelic.yml', __FILE__))
# Load the rails application
require File.expand_path('../application', __FILE__)