Sha256: 33f6d7cf70ceb17c98fc3aed5eb2fa20e56d38c9a37231b5986e23ef3c207740
Contents?: true
Size: 279 Bytes
Versions: 27
Compression:
Stored size: 279 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.where("name = ?", "Article One") end end
Version data entries
27 entries across 27 versions & 1 rubygems