5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-07-06 14:55:46 +00:00

el correo es opcional

This commit is contained in:
f 2020-06-03 19:56:08 -03:00
parent 2434c51f79
commit 76a635da5f

View file

@ -97,7 +97,7 @@ module Api
# Detecta si la dirección de contacto es válida. Además es
# opcional.
def from_is_address?
return if contact_params[:from].empty?
return if contact_params[:from].blank?
return if EmailAddress.valid? contact_params[:from]
head :precondition_required