From 7265af094ed16c36632128bccdcf84a3796c2359 Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Sat, 25 Mar 2023 00:10:33 -0600 Subject: AƱade specs de addresscontroller MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/services/create_address_service.rb | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 app/controllers/services/create_address_service.rb (limited to 'app/controllers/services/create_address_service.rb') diff --git a/app/controllers/services/create_address_service.rb b/app/controllers/services/create_address_service.rb deleted file mode 100644 index 431ccd1..0000000 --- a/app/controllers/services/create_address_service.rb +++ /dev/null @@ -1,19 +0,0 @@ -# frozen_string_literal: true - -module Services - # The service for address creation. - class CreateAddressService < AddressServicesBase - attr_reader :address - - def call - if already_existing_address.nil? - @address = Address.new(@params) - @address.user_accounts << @user_account - @address.save - else - add_address_to_user_addresses - @address = already_existing_address - end - end - end -end -- cgit v1.2.3