Skip to content

Commit

Permalink
fix: Gem version check (#483)
Browse files Browse the repository at this point in the history
  • Loading branch information
ef4 authored Nov 6, 2024
1 parent b377b99 commit 68e2492
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/graphiti/adapters/active_record.rb
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ def destroy(model_instance)
end

def close
if ::ActiveRecord.version > "7.2"
if ::ActiveRecord.version > Gem::Version.new("7.2")
::ActiveRecord::Base.connection_handler.clear_active_connections!
else
::ActiveRecord::Base.clear_active_connections!
Expand Down

0 comments on commit 68e2492

Please sign in to comment.