ignorar los correos vacíos

This commit is contained in:
f 2020-06-24 19:48:01 -03:00
parent 968856764a
commit e666fe8de9

View file

@ -28,7 +28,7 @@ module Api
private
def from_is_address?
return unless contact_params[:from].blank?
return if contact_params[:from].blank?
return if EmailAddress.valid? contact_params[:from]
@reason = 'email_invalid'