Created
January 18, 2014 17:30
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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