From 76a635da5ff1682768e37fd9bc78fe62d015b19a Mon Sep 17 00:00:00 2001 From: f Date: Wed, 3 Jun 2020 19:56:08 -0300 Subject: [PATCH] el correo es opcional --- app/controllers/api/v1/contact_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/v1/contact_controller.rb b/app/controllers/api/v1/contact_controller.rb index 3b24ba73..4807814e 100644 --- a/app/controllers/api/v1/contact_controller.rb +++ b/app/controllers/api/v1/contact_controller.rb @@ -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