Skip to content

Commit

Permalink
Merge pull request #890 from malbert/fix_resource_comparaison
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasmiller authored Apr 2, 2024
2 parents 05fa008 + c46043a commit 1a57364
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_resource.is_a?(Recurly::Resource) &&
attributes == other_resource.attributes
end

# Hide instance variables to keep from accidental logging
Expand Down

0 comments on commit 1a57364

Please sign in to comment.