Sha256: 1e575759a72c71b230158c0cebf87aaa1e00a5b13a05eeffd9014e69d064ba62

Contents?: true

Size: 595 Bytes

Versions: 3

Compression:

Stored size: 595 Bytes

Contents

module SpreeMultiVendor::Spree::Api::V1::UsersControllerDecorator
  private

  def user_params
    params.require(:user).permit(permitted_user_attributes |
                                 [spree_role_ids: [],
                                  vendor_ids: [],
                                  ship_address_attributes: permitted_address_attributes,
                                  bill_address_attributes: permitted_address_attributes])
  end
end

Spree::Api::V1::UsersController.prepend SpreeMultiVendor::Spree::Api::V1::UsersControllerDecorator if SpreeMultiVendor::Engine.api_v1_available?

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
spree_multi_vendor-2.5.0 app/controllers/spree_multi_vendor/spree/api/v1/users_controller_decorator.rb
spree_multi_vendor-2.4.1 app/controllers/spree_multi_vendor/spree/api/v1/users_controller_decorator.rb
spree_multi_vendor-2.4.0 app/controllers/spree_multi_vendor/spree/api/v1/users_controller_decorator.rb