diff options
author | HombreLaser <sebastian-440@live.com> | 2023-04-04 17:55:20 -0600 |
---|---|---|
committer | HombreLaser <sebastian-440@live.com> | 2023-04-04 17:55:20 -0600 |
commit | db9b4b712271a67e60e6c0bf58c9ce510f177682 (patch) | |
tree | 791da60f29a1ac3b73efff46493d96c0116318e0 /app/services | |
parent | 3afd35371caa0677fd2f66491bd337d1673013dc (diff) |
Mejora presentaciĆ³n de mensajes de error
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/addresses/address_services_base.rb | 4 |
1 files changed, 4 insertions, 0 deletions
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 |