Sha256: 2ff81d183d1e59a37a5a5c46f54e4641ad798a9459e084bc9d35fd43c8e0aa93
Contents?: true
Size: 448 Bytes
Versions: 3
Compression:
Stored size: 448 Bytes
Contents
class Post < ActiveRecord::Base has_most_related :authors has_most_related :tags, as: :most_related_by_tag has_most_related [:authors, :tags], as: :most_related_by_author_or_tag has_and_belongs_to_many :tags has_many :author_posts has_many :authors, through: :author_posts end class Tag < ActiveRecord::Base end class Author < ActiveRecord::Base end class AuthorPost < ActiveRecord::Base belongs_to :author belongs_to :post end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
most_related-0.0.4 | spec/support/models.rb |
most_related-0.0.3 | spec/support/models.rb |
most_related-0.0.2 | spec/support/models.rb |