On Apr 26, 3:06 am, Michael Koziarski <[email protected]> wrote:
> > def append_info_to_payload(payload)
> >  super
> >  payload[:db_runtime] = db_runtime +
> > ActiveRecord::LogSubscriber.reset_runtime
> > end
>
> I tried this and got a bunch of test failures with nil in places where
> it wasn't expected.
>

Yeah, I hadn't quite thought things through - turns out no AR time was
being logged at all if there was no render (ie the response was a
redirect) and I'd only been looking at the render case while I was
messing around. I've stuck a patch up at
https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/6749

Fred

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en.

Reply via email to