As long as you have foreign_key for the product in the registered_products table, you can do:
has_many :registered_products
named_scope :with_registered_products, :joins => :registered_products
scope :with_registered_products, joins(:registered_products)
and this will only return products having at least one associated registered product.
source
share