search for: giftboxinventoryprototype

Displaying 1 result from an estimated 1 matches for "giftboxinventoryprototype".

2008 May 13
0
Polymorphic naming difficulties
...you everything you want to know about your intended purchase, but they themselves are not for sale. The Interest objects "belong to" the InventoryPrototype objects. InventoryPrototype objects utilize STI so that different products can exhibit different behaviors. I have, for instance, a GiftBoxInventoryPrototype, which behaves slightly differently when added to an InterestList. But that''s off-topic for the question. From the perspective of the product, it makes sense for it to say, "I have many onlookers". I liked it so much I coded it... class InventoryPrototype has_many :onlookers...