Skip to content

Commit

Permalink
Remove redundant total_on_hand declaration in api
Browse files Browse the repository at this point in the history
This renders small.json.jbuilder as a partial which already has
total_on_hand.
  • Loading branch information
jhawthorn committed Jan 25, 2018
1 parent afdb7f9 commit 5a9ebb8
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion api/app/views/spree/api/variants/_big.json.jbuilder
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
json.cache! [I18n.locale, Spree::StockLocation.accessible_by(current_ability), variant] do
json.(variant, *variant_attributes)
json.partial!("spree/api/variants/small", variant: variant)
json.total_on_hand(variant.total_on_hand)
json.variant_properties(variant.variant_properties) do |variant_property|
json.(variant_property, *variant_property_attributes)
end
Expand Down

0 comments on commit 5a9ebb8

Please sign in to comment.