newrelic/newrelic_api — pull request #4 by aschepis (2012-02-25 19:59:35+00:00)
Title: Allow NewRelic API to be used with multiple 

Some rails apps may want to allow their customers to pull NewRelic data for the purpose of mashups or displaying application performance information in-line with other data. ActiveResource doesn't support this very well. I updated the gem to allow you to create a unique module for use with a different API key so that this can be accomplished. The existing NewRelicApi module should work just as it did before.

The metaprogramming makes it a bit harder to debug but it was the simplest way i knew to keep things backwards compatible. If you know a better way, let me know and i'll gladly update the change!