Sha256: cc72ac17db261ebdd027bc7ae08fcb666549f428b0c7bff783a647461b4b6818

Contents?: true

Size: 564 Bytes

Versions: 1

Compression:

Stored size: 564 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 :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
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cached-models-0.0.2 test/models/author.rb