Backport rails instantiation instrumentation to rails 3