You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Skip { after: :other_attribute } validation if other_attribute is nil #87
but then packaging_date is a nilable attribute, the validation fails when packaging_date is blank.
Describe the solution you'd like
The more sensible behaviour to me is if the after validation is only applied in case where packaging_date is present. If packaging_date is blank, the date validation should just check the date format of expiration_date.
If this makes sense with the authors and the users, I'm totally willing to put in a PR!
Activity
Ceda commentedon Feb 2, 2021
next if option_value.blank?to > https://github.com/codegram/date_validator/blob/master/lib/active_model/validations/date_validator.rb#L84