We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b680600 + 3e9f9f3 commit 3ed4d4fCopy full SHA for 3ed4d4f
lib/jsonapi/path_segment.rb
@@ -30,7 +30,7 @@ def initialize(relationship:, resource_klass: nil)
30
end
31
32
def eql?(other)
33
- relationship == other.relationship && resource_klass == other.resource_klass
+ other.is_a?(self.class) && relationship == other.relationship && resource_klass == other.resource_klass
34
35
36
def hash
@@ -59,7 +59,7 @@ def initialize(resource_klass:, field_name:)
59
60
61
62
- field_name == other.field_name && resource_klass == other.resource_klass
+ other.is_a?(self.class) && field_name == other.field_name && resource_klass == other.resource_klass
63
64
65
def delegated_field_name
0 commit comments