New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes #15476 - Improve validations for policy #179
Conversation
888d476
to
bf3e712
Compare
bf3e712
to
3279ff6
Compare
@xprazak2 will you please rebase? Thanks |
3279ff6
to
1d12a1b
Compare
elsif new_record? && !wizard_initiated? | ||
true | ||
else | ||
!id.blank? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be equal to persisted?
I think
1d12a1b
to
1cb96bd
Compare
@xprazak2 - please note that tests are failing :/ |
1cb96bd
to
58d0319
Compare
@wizard_initiated | ||
end | ||
|
||
def update_attrs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
update_attrs
strikes me as too general name (e.g., I expected to find more attributes to update here) where this update deals only with period
. Would you consider renaming this method?
@xprazak2 - Thank you for this improvement. Tested and it works well. I have only one nitpick regarding a method name (let me know what you thing - I may be wrong...) |
58d0319
to
1ceea86
Compare
I renamed the method to |
Merging, Thanks a lot @xprazak2 ! |
No description provided.