← 输入框|github.com|刷新
Skip to content

Bug in Sprangular::SmallVariantSerializer #192

Open

Description

@DanielWright

If I opt not to track inventory on a given variant, variant.total_on_hand is Infinity, which cannot be implicitly converted to JSON, resulting in a JSON::GeneratorError exception during serialization.

I'm not sure what the correct outcome is for this use case. I'm open to thoughts.

Activity

  1. changed the title [-]Bug in Sprangular::SmallVariantsController[/-] [+]Bug in Sprangular::SmallVariantsSerializer[/+] on Sep 1, 2015
  2. changed the title [-]Bug in Sprangular::SmallVariantsSerializer[/-] [+]Bug in Sprangular::SmallVariantSerializer[/+] on Sep 1, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions