class Album < Product
belongs_to :artist
has_many :tracks, :order => 'position', :dependent => true,
:foreign_key => 'product_id'
def self.featured_products
find(:all, :include => :artist,
:conditions => [ 'featured is not null' ],
:order => 'featured desc')
end
end