Sha256: f45649caffb0ab96080645914e28b91f68bcb35ace19d1ea1d5f98ea68403ab1
Contents?: true
Size: 311 Bytes
Versions: 24
Compression:
Stored size: 311 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
24 entries across 24 versions & 5 rubygems