Skip to content

Commit

Permalink
Fix gem version check
Browse files Browse the repository at this point in the history
  • Loading branch information
ef4 committed Nov 5, 2024
1 parent 4cad908 commit e897750
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 e897750

Please sign in to comment.