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