Base progress
This commit is contained in:
@@ -81,11 +81,7 @@ module Suppliers
|
||||
def destroy
|
||||
#@product = Product.find_by_supplier_id_and_id!(current_supplier.id, params[:id])
|
||||
@product.destroy
|
||||
|
||||
respond_to do |format|
|
||||
format.html { redirect_to suppliers_products_url, notice: t('action.destroy.successfull', model: Product.model_name.human) }
|
||||
format.json { head :ok }
|
||||
end
|
||||
head :no_content
|
||||
end
|
||||
|
||||
def preview_products
|
||||
|
||||
Reference in New Issue
Block a user