Browse Source

add order to ShopifyAPI::SmartCollection

Neil Costford 11 years ago
parent
commit
dd1ef91c5c
1 changed files with 3 additions and 0 deletions
  1. 3 0
      lib/shopify_api/resources/smart_collection.rb

+ 3 - 0
lib/shopify_api/resources/smart_collection.rb

@@ -6,5 +6,8 @@ module ShopifyAPI
     def products
       Product.find(:all, :params => {:collection_id => self.id})
     end
+
+    def order(options={}); load_attributes_from_response(put(:order, options, only_id)); end
+
   end
 end