| Class | NewRelic::Control::Frameworks::Rails |
| In: |
lib/new_relic/control/frameworks/rails.rb
|
| Parent: | NewRelic::Control::Frameworks::Ruby |
In versions of Rails prior to 2.0, the rails config was only available to the init.rb, so it had to be passed on from there. This is a best effort to find a config and use that.
Rails can return an empty string from this method, causing the agent not to start even when it is properly in a rails 3 application, so we test the value to make sure it actually has contents, and bail to the parent class if it is empty.