Skip to content

Refactor: Move validation and normalization logic into Details class - #778

Merged
yukideluxe merged 3 commits into
RubyMoney:mainfrom
RubenIgnacio:add_details_validation_methods
Sep 29, 2026
Merged

yukideluxe merged 3 commits into
RubyMoney:mainfrom
RubenIgnacio:add_details_validation_methods

Conversation

@RubenIgnacio

Copy link
Copy Markdown
Contributor

Moved normalize and validation logic from the validator into the Details class.

Methods moved:

  • normalize
  • value_has_too_many_decimal_points? (renamed to too_many_decimal_points?)
  • thousand_separator_after_decimal_mark?
  • invalid_thousands_separation?

@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.

looks good! thanks!

@yukideluxe
yukideluxe merged commit d577b19 into RubyMoney:main Sep 29, 2026
8 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