From ee147c232e75ae500598f69a7b8d05e52cf88196 Mon Sep 17 00:00:00 2001 From: Rob H Date: Fri, 28 Mar 2014 14:41:03 +1100 Subject: [PATCH] WIP: Remove changes to variant bulk show casuing issues --- app/views/spree/api/variants/bulk_show.v1.rabl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/views/spree/api/variants/bulk_show.v1.rabl b/app/views/spree/api/variants/bulk_show.v1.rabl index 874edf3f8b..458d79e89b 100644 --- a/app/views/spree/api/variants/bulk_show.v1.rabl +++ b/app/views/spree/api/variants/bulk_show.v1.rabl @@ -1,7 +1,6 @@ object @variant -attributes :id, :options_text, :unit_value, :unit_description, :on_demand +attributes :id, :price, :options_text, :unit_value, :unit_description, :on_demand # Infinity is not a valid JSON object, but Rails encodes it anyway -node( :on_hand ) { |v| v.on_hand.nil? ? 0 : v.on_hand.to_f.finite? ? v.on_hand : "On demand" } -node( :price ) { |v| v.price.nil? ? '0.0' : v.price } \ No newline at end of file +node( :on_hand ) { |v| v.on_hand.to_f.finite? ? v.on_hand : "On demand" } \ No newline at end of file