class Reader < ActiveRecord::Base
  has_many :subscriptions
    
  has_many :magazine_subscriptions,  :through => :subscriptions, 
           :source => :magazine, 
           :conditions => "subscriptions.subscribable_type = 'Magazine'"
 
  has_many :newspaper_subscriptions, :through => :subscriptions, 
           :source => :newspaper, 
           :conditions => "subscriptions.subscribable_type = 'Newspaper'"
end