Sha256: 0a8900da5aafa01e5ab34e8ed35baede05576238bef2a7bd2a337546240209b3
Contents?: true
Size: 301 Bytes
Versions: 39
Compression:
Stored size: 301 Bytes
Contents
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
Version data entries
39 entries across 39 versions & 1 rubygems