el correo es opcional
This commit is contained in:
parent
2434c51f79
commit
76a635da5f
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue