Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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