Tapjoy/newrelic-riak — pull request #2 by eabbott (2012-11-18 01:21:52+00:00)
Title: Changed metric names now show up in both Overview and Database tabs. Ess...

...entially impersonating ActiveRecord.

I opened a case with NewRelic, their ruby guy informed us the only way to get metrics into the Overview and Database tabs is to impersonate ActiveRecord, so we should duplicate whats done in the newrelic gem around ActiveRecord.

Not entirely sure if the constantize method is the way to go, or if we even need it. Only included it because if it works I'll do a PR to the original alinpopa gem and I figure the general populace would want it. Open for suggestions on better ways of implementing that method btw.