Remove old commented out code

You know, git already keeps old code for us.
This commit is contained in:
Pau Perez
2018-10-19 13:17:54 +02:00
parent 4155f086e0
commit 51155bb368
2 changed files with 1 additions and 8 deletions

View File

@@ -65,13 +65,6 @@ angular.module("ofn.admin").controller "AdminProductEditCtrl", ($scope, $timeout
DirtyProducts.clear()
StatusMessage.clear()
# $scope.matchProducer = (product) ->
# for producer in $scope.producers
# if angular.equals(producer.id, product.producer)
# product.producer = producer
# break
$scope.updateOnHand = (product) ->
on_demand_variants = []
if product.variants

View File

@@ -5,7 +5,7 @@ class Api::Admin::ProductSerializer < ActiveModel::Serializer
has_one :supplier, key: :producer_id, embed: :id
has_one :primary_taxon, key: :category_id, embed: :id
has_many :variants, key: :variants, serializer: Api::Admin::VariantSerializer # embed: ids
has_many :variants, key: :variants, serializer: Api::Admin::VariantSerializer
has_one :master, serializer: Api::Admin::VariantSerializer
def image_url