Shopify/shopify_api — pull request #30 by dylanahsmith (2012-06-12 17:45:06+00:00)
Title: Workaround ActiveResource 3.1+ bug for saving nested resources.

For issue #28.

@jduff and @odorcicd for review

I have also submitted a [pull request to fix this upstream](https://github.com/rails/activeresource/pull/30).

The workaround depends on the presence of primary key value to know whether the resource has been persisted, which this bug has shown to be a better indicator than the @persisted instance variable.

Let me know if you think we shouldn't fix this in the shopify_api gem, in which case we should close the issue as being an upstream bug.