Sha256: 748f1a32c54f5f70b69b1f1292b1731c967d0590b641db71b3171ff7c277bd5a

Contents?: true

Size: 1018 Bytes

Versions: 7

Compression:

Stored size: 1018 Bytes

Contents

require 'acts_as_shopping_cart/version'
require 'active_record/acts/shopping_cart'
require 'active_record/acts/shopping_cart_item'

# require 'active_record/acts/shopping_cart/cart_instance_methods'
# require 'active_record/acts/shopping_cart/item_instance_methods'

# require 'active_record/acts/shopping_cart_item'
# require 'active_record/acts/shopping_cart_item/cart_item_instance_methods'

require 'acts_as_shopping_cart/schema'

module ActiveRecord
  module Acts
    module ShoppingCart
      module Cart
        autoload :InstanceMethods, 'active_record/acts/shopping_cart/cart/instance_methods'
      end

      module Item
        autoload :InstanceMethods, 'active_record/acts/shopping_cart/item/instance_methods'
      end
    end

    module ShoppingCartItem
      autoload :InstanceMethods, 'active_record/acts/shopping_cart_item/instance_methods'
    end
  end
end

ActiveRecord::Base.send :include, ActiveRecord::Acts::ShoppingCart
ActiveRecord::Base.send :include, ActiveRecord::Acts::ShoppingCartItem

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
acts_as_shopping_cart-0.1.6 lib/acts_as_shopping_cart.rb
acts_as_shopping_cart-0.1.5 lib/acts_as_shopping_cart.rb
acts_as_shopping_cart-0.1.4 lib/acts_as_shopping_cart.rb
acts_as_shopping_cart-0.1.3 lib/acts_as_shopping_cart.rb
acts_as_shopping_cart-0.1.2 lib/acts_as_shopping_cart.rb
acts_as_shopping_cart-0.1.1 lib/acts_as_shopping_cart.rb
acts_as_shopping_cart-0.1.0 lib/acts_as_shopping_cart.rb