Skip to content

Commit

Permalink
fix gem version comparison for Ruby 2.7.8
Browse files Browse the repository at this point in the history
  • Loading branch information
skaes committed Oct 5, 2023
1 parent a7334e5 commit 31a7b9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/time_bandits/monkey_patches/active_record.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module ActiveRecord
class LogSubscriber
IGNORE_PAYLOAD_NAMES = ["SCHEMA", "EXPLAIN"] unless defined?(IGNORE_PAYLOAD_NAMES)

if ActiveRecord::VERSION::STRING >= Gem::Version.new("7.1.0")
if Gem::Version.new(ActiveRecord::VERSION::STRING) >= Gem::Version.new("7.1.0")
def self.reset_runtime
ActiveRecord::RuntimeRegistry.reset
end
Expand Down

0 comments on commit 31a7b9e

Please sign in to comment.