diff options
author | danielgrippi <danielgrippi@gmail.com> | 2011-06-02 23:09:39 +0400 |
---|---|---|
committer | danielgrippi <danielgrippi@gmail.com> | 2011-06-02 23:10:03 +0400 |
commit | 918284a8f8b5a4f48fa2489837c6a51d76f74d87 (patch) | |
tree | 16c605fe1e4b4aa4798f3c3c6455711ed2840166 /config/environment.rb | |
parent | 7363bf34999586d32d835171a622b332d684a731 (diff) |
include newrelic if the newrelic config file is present. profiling ftw.
Diffstat (limited to 'config/environment.rb')
-rw-r--r-- | config/environment.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/config/environment.rb b/config/environment.rb index 26adfb6b1..7e0fc1c1a 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -2,6 +2,9 @@ # licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. +# use newrelic if configured via config/newrelic.yml +require 'newrelic_rpm' if File.exists?(Rails.root.to_s << '/config/newrelic.yml') + # Load the rails application require File.expand_path('../application', __FILE__) Haml::Template.options[:format] = :html5 |