Do not serialize product count_on_hand - reduce coupling between variant create and products JSON

This commit is contained in:
Rohan Mitchell
2016-03-03 09:33:32 +11:00
parent 4a7a40425a
commit 7e6d544180

View File

@@ -36,7 +36,7 @@ class Api::CachedProductSerializer < ActiveModel::Serializer
#delegate :cache_key, to: :object
include ActionView::Helpers::SanitizeHelper
attributes :id, :name, :permalink, :count_on_hand
attributes :id, :name, :permalink
attributes :on_demand, :group_buy, :notes, :description
attributes :properties_with_values