def update
        if @stock_location.update_attributes(stock_location_params)
          redirect_to comable.admin_stock_location_path(@stock_location), notice: Comable.t('successful')
        else
          flash.now[:alert] = Comable.t('failure')