Skip to content

Instantly share code, notes, and snippets.

@csaunders
Created January 18, 2014 17:30
Show Gist options
  • Save csaunders/8493569 to your computer and use it in GitHub Desktop.
Save csaunders/8493569 to your computer and use it in GitHub Desktop.
Application code that is needed to do an API import into your local database
class Importer
def import
api_products = ShopifyAPI::Product.find(:all)
ShopProductSink::Product.create_from_resources(api_products)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment