newrelic/rpm — pull request #41 by lmars (2011-11-08 16:46:03+00:00)
Title: Don't check dependencies in delayed_job_injection.rb if Rails is defined

This was causing NewRelic::Control to be instantiated (in the depends_on block) before Rails had initialized.

DependencyDetection.detect! is called in the Rails#init_config method anyway so no need to call it here.

I was unable to run the tests for this:

```
lewis@mac-local:~/github/rpm (master)$ rake test:newrelic
(in /Users/lewis/github/rpm)
rake aborted!
Don't know how to build task 'environment'
```