Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid JSON serializing Float::INFINITY
Float::Infinity serialization is broken with Oj gem, see solidusio#2495 (comment) This commit makes sure we are always nullifying total_on_hand before passing trying to serialize it, if it is a Float::Infinite.
- Loading branch information