Skip to content
Browse files

Brevity in require statements

  • Loading branch information...
1 parent a2bd1c6 commit 6692798d8ce24e00eda00281fb231b691bfb1a6a Gaurav Chande committed Sep 18, 2012
Showing with 1 addition and 40 deletions.
  1. +1 −40 lib/shopify_api/resources.rb
View
41 lib/shopify_api/resources.rb
@@ -1,41 +1,2 @@
require 'shopify_api/resources/base'
-require 'shopify_api/resources/address'
-require 'shopify_api/resources/application_charge'
-require 'shopify_api/resources/article'
-require 'shopify_api/resources/asset'
-require 'shopify_api/resources/billing_address'
-require 'shopify_api/resources/blog'
-require 'shopify_api/resources/cart'
-require 'shopify_api/resources/collect'
-require 'shopify_api/resources/comment'
-require 'shopify_api/resources/country'
-require 'shopify_api/resources/custom_collection'
-require 'shopify_api/resources/customer_group'
-require 'shopify_api/resources/customer'
-require 'shopify_api/resources/event'
-require 'shopify_api/resources/fulfillment'
-require 'shopify_api/resources/image'
-require 'shopify_api/resources/line_item'
-require 'shopify_api/resources/metafield'
-require 'shopify_api/resources/note_attribute'
-require 'shopify_api/resources/option'
-require 'shopify_api/resources/order'
-require 'shopify_api/resources/page'
-require 'shopify_api/resources/payment_details'
-require 'shopify_api/resources/product'
-require 'shopify_api/resources/product_search_engine'
-require 'shopify_api/resources/province'
-require 'shopify_api/resources/receipt'
-require 'shopify_api/resources/recurring_application_charge'
-require 'shopify_api/resources/redirect'
-require 'shopify_api/resources/rule'
-require 'shopify_api/resources/script_tag'
-require 'shopify_api/resources/shipping_address'
-require 'shopify_api/resources/shipping_line'
-require 'shopify_api/resources/shop'
-require 'shopify_api/resources/smart_collection'
-require 'shopify_api/resources/tax_line'
-require 'shopify_api/resources/theme'
-require 'shopify_api/resources/transaction'
-require 'shopify_api/resources/variant'
-require 'shopify_api/resources/webhook'
+Dir.glob "#{File.dirname(__FILE__)}/resources/*", &method(:require)

0 comments on commit 6692798

Please sign in to comment.
Something went wrong with that request. Please try again.