From 609ce8dfd3f1f96db24d4fa85006caac58fd79be Mon Sep 17 00:00:00 2001 From: Eduardo Navarro Date: Mon, 27 May 2024 12:23:32 +0200 Subject: [PATCH] Add `cached` key for active_record payloads --- lib/influxdb/rails/middleware/sql_subscriber.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/influxdb/rails/middleware/sql_subscriber.rb b/lib/influxdb/rails/middleware/sql_subscriber.rb index 982ed21..cae0117 100644 --- a/lib/influxdb/rails/middleware/sql_subscriber.rb +++ b/lib/influxdb/rails/middleware/sql_subscriber.rb @@ -21,6 +21,7 @@ def tags class_name: query.class_name, name: query.name, location: :raw, + cached: query.cached, } end