app/controllers/spree/api/v1/users_controller.rb in spree_api-3.3.6 vs app/controllers/spree/api/v1/users_controller.rb in spree_api-3.4.0.rc1
- old
+ new
@@ -1,10 +1,9 @@
module Spree
module Api
module V1
class UsersController < Spree::Api::BaseController
-
rescue_from Spree::Core::DestroyWithOrdersError, with: :error_during_processing
def index
@users = Spree.user_class.accessible_by(current_ability, :read)
@@ -22,12 +21,11 @@
def show
respond_with(user)
end
- def new
- end
+ def new; end
def create
authorize! :create, Spree.user_class
@user = Spree.user_class.new(user_params)
if @user.save
@@ -61,10 +59,9 @@
def user_params
params.require(:user).permit(permitted_user_attributes |
[bill_address_attributes: permitted_address_attributes,
ship_address_attributes: permitted_address_attributes])
end
-
end
end
end
end