This PR https://github.com/rails/rails/pull/45976 has deprecated the optional argument for the color method in the Active Support:: LogSubscriber, and the graphql-client gem depends on the deprecated interface in the
lib/graphql/client/log_subscriber.rb. As a result, the following deprecation warning would appear when used with Rails 7.1.
DEPRECATION WARNING: Bolding log text with a positional boolean is deprecated and will be removed in Rails 7.2. Use an option hash instead (eg. ).
This PR updates the code to be compatible with both the latest rails and the older ones.
This PR https://github.com/rails/rails/pull/45976 has deprecated the optional argument for the
color
method in theActive Support:: LogSubscriber
, and thegraphql-client
gem depends on the deprecated interface in thelib/graphql/client/log_subscriber.rb
. As a result, the following deprecation warning would appear when used with Rails 7.1.This PR updates the code to be compatible with both the latest rails and the older ones.
cc @erikdstock @jonallured