makandra / query_diet

A Rails database query counter that stays out of your way

Home Page:http://makandra.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

query diet doesn't reset numbers

nurettin opened this issue · comments

This is my logging configuration: (Rails 3.2.9)
config.log_tags= [:uuid, :remote_ip, lambda { |req| PaperTrail.whodunnit.try(:full_name)|| "Guest" }]

Every time I refresh the page, the same action gets called, but query_diet just adds a fixed number of queries to its counter and doesn't reset itself.

When I do

before_filter Proc.new { QueryDiet::Logger.reset }, :if => Proc.new { Rails.env.development? }

in ApplicationController it seems to reset correctly.

Is this still an issue? We've never experienced such behaviour and have updated query diet since you filed your issue.