shotengai.rb 1.48 KB
Newer Older
ivan Lan committed
1
require "shotengai/version"
ivan Lan committed
2
require 'rails'
3
require 'active_record'
ivan Lan committed
4 5

module Shotengai
6 7 8 9 10 11 12 13 14
  autoload :Product,         'shotengai/product'
  autoload :Series,          'shotengai/series'
  autoload :Snapshot,        'shotengai/snapshot'
  autoload :Order,           'shotengai/order'
  autoload :Cart,            'shotengai/cart'
  autoload :Buyer,           'shotengai/buyer'
  autoload :Catalog,         'shotengai/catalog'
  autoload :AASM_DLC,        'shotengai/aasm_dlc'
  autoload :WebError,        'shotengai/web_error'
15 16 17
  autoload :Engine,          'shotengai/engine'

  module Controller
18
    autoload :Base, 'shotengai/controllers/base'
19

20 21 22 23 24 25
    module Merchant
      autoload :ProductsController,          'shotengai/controllers/merchant/products_controller'
      autoload :ProductSnapshotsController, 'shotengai/controllers/merchant/product_snapshots_controller'
      autoload :ProductSeriesController,    'shotengai/controllers/merchant/product_series_controller'
      autoload :OrdersController,           'shotengai/controllers/merchant/orders_controller'
    end
26
    
27
    module Customer
28 29 30 31
      autoload :ProductsController,          'shotengai/controllers/customer/products_controller'
      autoload :ProductSnapshotsController, 'shotengai/controllers/customer/product_snapshots_controller'
      autoload :ProductSeriesController,    'shotengai/controllers/customer/product_series_controller'
      autoload :OrdersController,           'shotengai/controllers/customer/orders_controller'
32
    end
33
  end
ivan Lan committed
34
end