Class NewRelic::Control::Frameworks::Rails
In: lib/new_relic/control/frameworks/rails.rb
Parent: NewRelic::Control::Frameworks::Ruby

Control subclass instantiated when Rails is detected. Contains Rails specific configuration, instrumentation, environment values, etc.

Methods

Included Modules

NewRelic::Agent::Instrumentation::ControllerInstrumentation::Shim NewRelic::Agent::Instrumentation::ControllerInstrumentation::Shim

Public Instance methods

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.

Protected Instance methods

[Validate]