summaryrefslogtreecommitdiff
path: root/app/services/addresses
diff options
context:
space:
mode:
Diffstat (limited to 'app/services/addresses')
-rw-r--r--app/services/addresses/address_services_base.rb4
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