1 class User < ActiveRecord::Base
\r 
   3   has_many :articles, :through => :readings
\r 
   4   has_many :comments, :as => :person
\r 
   5   has_many :hacks, :through => :comments, :source => :hack
\r 
   7   def find_custom_articles
\r 
   8     articles.find(:all, :conditions => ["name = ?", "Article One"])
\r