Sha256: 89cae10f759247aa53ae5049a8ce000f0f72d7c0b8e7f42660b86c33ac2525bf
Contents?: true
Size: 772 Bytes
Versions: 3
Compression:
Stored size: 772 Bytes
Contents
class Retailer < ActiveRecord::Base has_many :stocked_products end class StoreLocation < ActiveRecord::Base belongs_to :retailer has_many :stocked_products end class Product < ActiveRecord::Base has_many :stocked_products end class StockedProduct < ActiveRecord::Base belongs_to :product belongs_to :store_location belongs_to :retailer end class StockedProducts < ActiveRecord::Collection default_batch_size 200 batching_threshold 500 end class StockedProductCollection < ActiveRecord::Collection collectable StockedProduct end class ProductCollection < ActiveRecord::Collection collectable Product end class AnotherProductCollection < ProductCollection end class Retailers < ActiveRecord::Collection end class MoreRetailers < Retailers end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
activerecord-collections-0.0.26 | spec/support/models.rb |
activerecord-collections-0.0.25 | spec/support/models.rb |
activerecord-collections-0.0.24 | spec/support/models.rb |