From 64f320c48ec2caf1dc8191a676a21a2dc2fb24fe Mon Sep 17 00:00:00 2001 From: Radoslaw Wojnarowski Date: Thu, 14 Sep 2023 18:08:14 +0200 Subject: [PATCH] Fix color() method deprecation warning --- lib/sequel_rails/railties/log_subscriber.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/sequel_rails/railties/log_subscriber.rb b/lib/sequel_rails/railties/log_subscriber.rb index b600f5ba..81ca0c68 100644 --- a/lib/sequel_rails/railties/log_subscriber.rb +++ b/lib/sequel_rails/railties/log_subscriber.rb @@ -47,10 +47,10 @@ def sql(event) end if odd? - name = color(name, :cyan, true) - sql = color(sql, nil, true) + name = color(name, :cyan, :bold => true) + sql = color(sql, nil, :bold => true) else - name = color(name, :magenta, true) + name = color(name, :magenta, :bold => true) end debug " #{name} #{sql}#{binds}"