Sha256: 72fd11a12b79399062a66fd058f251a4197822bf39dacd59a52347c40d5cef35

Contents?: true

Size: 405 Bytes

Versions: 2

Compression:

Stored size: 405 Bytes

Contents

class Author < User
  has_many :posts
  has_many :categories, :through => :posts
  has_many :similar_posts, :through => :categories, :source => :posts
  has_many :similar_authors, :through => :similar_posts, :source => :author, :uniq => true
  has_many :posts_of_similar_authors, :through => :similar_authors, :source => :posts, :uniq => true
  has_many :commenters, :through => :posts, :uniq => true
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
nested_has_many_through-0.0.2 spec/rails_app/app/models/author.rb
nested_has_many_through-0.0.1 spec/rails_app/app/models/author.rb