Skip to content

Instantly share code, notes, and snippets.

@darrinholst
Created November 8, 2012 20:33
Show Gist options
  • Save darrinholst/4041404 to your computer and use it in GitHub Desktop.
Save darrinholst/4041404 to your computer and use it in GitHub Desktop.
class ActiveRecord::LogSubscriber
def sql_with_filtering(event)
return if 'CACHE' == event.payload[:name]
sql_without_filtering(event)
end
alias_method_chain :sql, :filtering
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment