Displaying 1 result from an estimated 1 matches for "product_identification_product_code".
2006 Feb 22
5
Optional Include Relationship
...the mailing list and on the web but I can''t
seem to find the answer to this, but it''s pretty much a noob question.
I have a Product object
class Product < ActiveRecord::Base
has_many :product_identifications
has_one :product_identification_item_number
has_one :product_identification_product_code
end
the product_identifications is using STI to have the two optional
product identifiers Item Number and Product Code.
I would like to use this on a listing screen but use :include to keep
it at only one query, however when i add ":include
=> :product_identification_item_number&quo...