Skip to content

Commit

Permalink
fix: Fixes error in version check for ActiveRecord adapter introduced…
Browse files Browse the repository at this point in the history
… in #478 (#479)
  • Loading branch information
mihaimuntenas committed Sep 16, 2024
1 parent 4dca1ef commit 42c82c3
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 > "7.2"
::ActiveRecord::Base.connection_handler.clear_active_connections!
else
::ActiveRecord::Base.clear_active_connections!
Expand Down

0 comments on commit 42c82c3

Please # to comment.