Sha256: 565c8a8be1ed47afe47bfae6161809e740b6bcce8fb7cab43d41efe7105460c2
Contents?: true
Size: 251 Bytes
Versions: 5
Compression:
Stored size: 251 Bytes
Contents
class User < ActiveRecord::Base has_many :readings has_many :articles, :through => :readings has_many :comments, :as => :person def find_custom_articles articles.find(:all, :conditions => ["name = ?", "Article One"]) end end
Version data entries
5 entries across 5 versions & 1 rubygems