Dispatcher warning during startup
If I change the first line in plugins/newrelic_rpm/lib/new_relic/agent/instrumentation/rails/dispatcher.rb from
require_dependency 'dispatcher'
to
require_dependency 'action_controller/dispatcher'
I get rid of the startup warning:
1.8/gems/rails-2.1.1/lib/dispatcher.rb:24: warning: already initialized constant Dispatcher
Is this the way to do it?
require_dependency 'dispatcher'
to
require_dependency 'action_controller/dispatcher'
I get rid of the startup warning:
1.8/gems/rails-2.1.1/lib/dispatcher.rb:24: warning: already initialized constant Dispatcher
Is this the way to do it?
2
people have this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
The best answers from the company
-
This is fixed in 2.8.0 and later versions of the plugin.
The company says
this answers the question
-
That's change should be fine. I don't think it's a backward compatible change so we can't apply that patch ourselves, but we're going to see if we can fix this so there's no warning.
The company and 1 other person say
this answers the question
Create a customer community for your own organization
Plans starting at $19/month
-
Inappropriate?That's change should be fine. I don't think it's a backward compatible change so we can't apply that patch ourselves, but we're going to see if we can fix this so there's no warning.
The company and 1 other person say
this answers the question
-
Inappropriate?Does the problem go away if you change 'require_dependency' to just plain 'require'?
-
Yes, it does. That's probably the way to go to get it backwards compatible. -
Inappropriate?yes, 'require' is enought for me.
-
The company says
this answers the question
Loading Profile...



EMPLOYEE
