diff --git a/app/controllers/spree/admin/users_controller_decorator.rb b/app/controllers/spree/admin/users_controller_decorator.rb index e9e89a87..10334c11 100644 --- a/app/controllers/spree/admin/users_controller_decorator.rb +++ b/app/controllers/spree/admin/users_controller_decorator.rb @@ -20,10 +20,6 @@ def load_use_codes @use_codes = SpreeAvataxOfficial::EntityUseCode.all.map { |use_code| ["#{use_code.code} - #{use_code.name}", use_code.id] } end - - def user_params - params.require(:user).permit(:avatax_entity_use_code_id, :exemption_number, :vat_id) - end end end end diff --git a/config/initializers/spree_permitted_attributes.rb b/config/initializers/spree_permitted_attributes.rb new file mode 100644 index 00000000..27eea370 --- /dev/null +++ b/config/initializers/spree_permitted_attributes.rb @@ -0,0 +1,5 @@ +module Spree + module PermittedAttributes + @@user_attributes.push :avatax_entity_use_code_id, :exemption_number, :vat_id + end +end \ No newline at end of file