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