Merge pull request #13656 from pacodelaluna/replace-alias-attribute-with-alias-method

Replace alias_attribute with alias_method
This commit is contained in:
Maikel
2025-11-10 11:50:33 +11:00
committed by GitHub
5 changed files with 18 additions and 10 deletions

View File

@@ -8,6 +8,10 @@ module Api
include AddressTransformation
include ExtraFields
wrap_parameters :customer, include:
Customer.attribute_names +
[:billing_address, :shipping_address]
skip_authorization_check only: :index
before_action :authorize_action, only: [:show, :update, :destroy]
@@ -88,7 +92,8 @@ module Api
attributes = params.require(:customer).permit(
:email, :enterprise_id,
:code, :first_name, :last_name,
:billing_address, shipping_address: [
:billing_address,
shipping_address: [
:phone, :latitude, :longitude,
:first_name, :last_name,
:street_address_1, :street_address_2,