Sha256: f643196be2f57dc5053ca661e29873e8e94a4641701bdb663f844e2df4481cf8

Contents?: true

Size: 537 Bytes

Versions: 2

Compression:

Stored size: 537 Bytes

Contents

ActiveRecord::Base.establish_connection(adapter: "sqlite3", database: ":memory:")
# ActiveRecord::Base.logger = Logger.new(STDOUT)

ActiveRecord::Schema.define(version: 1) do
  create_table :shopping_carts
  create_table :shopping_cart_items do |t|
    t.shopping_cart_item_fields
  end

  create_table :products do |t|
    t.string :name
  end
end

class Product < ActiveRecord::Base

end

class ShoppingCart < ActiveRecord::Base
  acts_as_shopping_cart
end

class ShoppingCartItem < ActiveRecord::Base
  acts_as_shopping_cart_item
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
acts_as_shopping_cart-0.4.1 features/support/rails_env.rb
acts_as_shopping_cart-0.4.0 features/support/rails_env.rb