summaryrefslogtreecommitdiff
path: root/app/controllers/services/create_address_service.rb
diff options
context:
space:
mode:
authorHombreLaser <sebastian-440@live.com>2023-03-24 20:34:23 -0600
committerHombreLaser <sebastian-440@live.com>2023-03-24 20:34:23 -0600
commita4e461bccee482c40e69be9310ba12de5d7da59b (patch)
tree393c62df15091d88083ad4841d95e9d0083534c3 /app/controllers/services/create_address_service.rb
parent92994313506152f366d91f845aa1ff59e84b0acd (diff)
Fixes de addresses_controller
Diffstat (limited to 'app/controllers/services/create_address_service.rb')
-rw-r--r--app/controllers/services/create_address_service.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/controllers/services/create_address_service.rb b/app/controllers/services/create_address_service.rb
index 7b67af2..5ded4f7 100644
--- a/app/controllers/services/create_address_service.rb
+++ b/app/controllers/services/create_address_service.rb
@@ -7,8 +7,7 @@ module Services
def call
if already_existing_address.nil?
- @address = @user_account.address.new(@params)
- @address.save
+ @address = @user_account.addresses.create(@params)
else
add_address_to_user_addresses
@address = already_existing_address