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
If you use Active Record Store to store attributes in a serialized field, the ActiveRecordValidator does not work. This is because the validator tries to get the value of the field from accessing it as a hash instead of calling the AR method.
If you use Active Record Store to store attributes in a serialized field, the
ActiveRecordValidator
does not work. This is because the validator tries to get the value of the field from accessing it as a hash instead of calling the AR method.https://github.com/afair/email_address/blob/master/lib/email_address/active_record_validator.rb#L39
Consider this scenario:
I made a PR to fix this, in the hopes that someone can review and approve it soon.
The text was updated successfully, but these errors were encountered: