I did some searches in 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
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” i only get back records where
an Item Number exists for the product. I did try including the base
product_identifications, which doesn’t limit the results but wouldn’t
be the cleanest way for my presentation.
Any help would be greatly appreciated,