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.
1 parent 49d213d commit 2c853ddCopy full SHA for 2c853dd
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?(JSONAPI::PathSegment::Relationship) && 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?(JSONAPI::PathSegment::Field) && field_name == other.field_name && resource_klass == other.resource_klass
63
64
65
def delegated_field_name
0 commit comments