Skip to content

Commit 6212335

Browse files
committed
Check ActiveSupport version properly
1 parent df2f566 commit 6212335

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/graphiti.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def self.logger=(val)
8383
end
8484

8585
def self.log(msg, color = :white, bold = false)
86-
if ::Rails::VERSION::MAJOR >= 7 && ::Rails::VERSION::MINOR >= 1
86+
if ::ActiveSupport.version >= Gem::Version.new("7.1")
8787
colored = ActiveSupport::LogSubscriber.new.send(:color, msg, color, bold: bold)
8888
else
8989
colored = ActiveSupport::LogSubscriber.new.send(:color, msg, color, bold)

0 commit comments

Comments
 (0)