lib/new_relic/control/frameworks/ruby.rb in newrelic_rpm-3.8.1.221 vs lib/new_relic/control/frameworks/ruby.rb in newrelic_rpm-3.9.0.229
- old
+ new
@@ -5,21 +5,20 @@
module NewRelic
class Control
module Frameworks
# A control used when no framework is detected - the default.
class Ruby < NewRelic::Control
-
def env
- @env ||= ENV['RUBY_ENV'] || ENV['RAILS_ENV'] || ENV['RACK_ENV'] || 'development'
+ @env ||= ENV['NEW_RELIC_ENV'] || ENV['RUBY_ENV'] ||
+ ENV['RAILS_ENV'] || ENV['RACK_ENV'] || 'development'
end
def root
@root ||= ENV['APP_ROOT'] || '.'
end
def init_config(options={})
end
-
end
end
end
end