Sha256: 37e5d215a17208d7e43e057da34febb072ee6b1e979d92c687bb67d71eca375f
Contents?: true
Size: 289 Bytes
Versions: 37
Compression:
Stored size: 289 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
37 entries across 37 versions & 1 rubygems