Skip to content

Commit

Permalink
Replace scope.name with a comparison on both table_name and connectio…
Browse files Browse the repository at this point in the history
…n_specification_name
  • Loading branch information
summera committed Dec 17, 2023
1 parent b8f19c9 commit def54b2
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@ def initialize(scope, association_key_name)

def eql?(other)
association_key_name == other.association_key_name &&
scope.name == other.scope.name &&
scope.table_name == other.scope.table_name &&
scope.connection_specification_name == other.scope.connection_specification_name &&
scope.values_for_queries == other.scope.values_for_queries
end

def hash
[association_key_name, scope.name, scope.values_for_queries].hash
[association_key_name, scope.table_name, scope.connection_specification_name, scope.values_for_queries].hash
end

def records_for(loaders)
Expand Down

0 comments on commit def54b2

Please sign in to comment.