Skip to content

Commit

Permalink
fix: improve Resource == robustness
Browse files Browse the repository at this point in the history
  • Loading branch information
malbert committed Feb 27, 2024
1 parent 6f7e325 commit 01392e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/recurly/resource.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ def requires_client?
end

def ==(other_resource)
self.attributes == other_resource.attributes
other.is_a?(Recurly::Resource) &&
attributes == other.attributes
end

# Hide instance variables to keep from accidental logging
Expand Down

0 comments on commit 01392e6

Please sign in to comment.