diff --git a/app/controllers/admin/customers_controller.rb b/app/controllers/admin/customers_controller.rb index ff5c43ab63..a7e0038e80 100644 --- a/app/controllers/admin/customers_controller.rb +++ b/app/controllers/admin/customers_controller.rb @@ -51,6 +51,18 @@ module Admin end end + # copy of Admin::ResourceController without flash notice + def update + if @object.update(permitted_resource_params) + respond_with(@object) do |format| + format.html { redirect_to location_after_save } + format.js { render layout: false } + end + else + respond_with(@object) + end + end + # copy of Admin::ResourceController without flash notice def destroy if @object.destroy