Fix document number field duplication during verification #24
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🎩 What? Why?
The changes in last version made the document number field being duplicated in the user verification form. One field was rendered for the
:id_document
attribute and another was rendered for the:document_number
attribute. The handler was still working whichever field was set.To avoid the field duplication this PR removes the
:document_number
attribute and extracts that field in the constructor if present.Binstubs for
rspec
andrubocop
has also been added.📌 Related Issues
📋 Subtasks