From db9b4b712271a67e60e6c0bf58c9ce510f177682 Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Tue, 4 Apr 2023 17:55:20 -0600 Subject: Mejora presentaciĆ³n de mensajes de error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/services/addresses/address_services_base.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/services/addresses') diff --git a/app/services/addresses/address_services_base.rb b/app/services/addresses/address_services_base.rb index 06ffde7..9b7f9f3 100644 --- a/app/services/addresses/address_services_base.rb +++ b/app/services/addresses/address_services_base.rb @@ -8,6 +8,10 @@ module Addresses @params = params end + def error_messages + @address.errors.as_json + end + private def already_existing_address -- cgit v1.2.3