spree/spree — pull request #4652 by mtuckergd (2014-05-06 18:37:13+00:00)
Title: Stock item inventory fix (issue #4651)

Fixes https://github.com/spree/spree/issues/4651 by checking for active variant and returning false if associated variant has been deleted. This seems like the most reasonable approach in this case, because there's no reason to track inventory for a deleted variant, regardless of its original settings.