Sha256: 519f26c3c4d696e749e32644453b2577bfdfb94971b999e30437b868d2fa7850

Contents?: true

Size: 668 Bytes

Versions: 2

Compression:

Stored size: 668 Bytes

Contents

class Author < ActiveRecord::Base
  belongs_to :blog, :cached => true
  has_many :posts
  has_many :cached_posts, :cached => true, :class_name => 'Post'
  has_many :uniq_cached_posts, :cached => true, :class_name => 'Post', :uniq => true
  has_many :cached_dependent_posts, :cached => true, :class_name => 'Post', :dependent => :destroy
  has_many :posts_with_comments, :class_name => 'Post', :include => :comments
  has_many :cached_posts_with_comments, :class_name => 'Post', :include => :comments, :cached => true
  has_many :comments, :through => :posts
  has_many :cached_comments, :through => :posts, :source => :comments, :cached => true
  has_one :address
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
jodosha-cached-models-0.0.3 test/models/author.rb
cached-models-0.0.3 test/models/author.rb