Skip to content

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

Open
RubenIgnacio wants to merge 3 commits into
RubyMoney:mainfrom
RubenIgnacio:add_details_validation_methods
Open

Refactor: Move validation and normalization logic into Details class#778
RubenIgnacio wants to merge 3 commits into
RubyMoney:mainfrom
RubenIgnacio:add_details_validation_methods

Conversation

@RubenIgnacio

Copy link
Copy Markdown

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?

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.

2 participants