Skip to content

Correct eql? deprecation warning - #1230

Merged
yukideluxe merged 3 commits into
RubyMoney:mainfrom
peter-j-fortuna:patch-1
Sep 23, 2026
Merged

yukideluxe merged 3 commits into
RubyMoney:mainfrom
peter-j-fortuna:patch-1

Conversation

@peter-j-fortuna

@peter-j-fortuna peter-j-fortuna commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

This warning assumes the currencies are not equal. It would be best to make that explicit.

Currently, we are getting misleading deprecation warnings for Money.new(0, "USD").eql?(Money.new(0, "USD"))

This warning assumes the currencies are not equal. It would be best to make that explicit.
@peter-j-fortuna peter-j-fortuna changed the title Correct eql? method warning Correct eql? deprication warning Sep 22, 2026
@peter-j-fortuna peter-j-fortuna changed the title Correct eql? deprication warning Correct eql? deprecation warning Sep 22, 2026
sunny
sunny previously approved these changes Sep 23, 2026

@sunny sunny left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a small entry to the CHANGELOG? 🙏🏻

@yukideluxe yukideluxe left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@yukideluxe
yukideluxe merged commit 7348778 into RubyMoney:main Sep 23, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants