Sha256: c980fd56be5d8fc5b01498f7f64abedfe6e0ddc3235ce69ebe68983a9de02017

Contents?: true

Size: 193 Bytes

Versions: 8

Compression:

Stored size: 193 Bytes

Contents

class Post < ActiveRecord::Base
  include Cacheable

  belongs_to :user
  has_many :comments, :as => :commentable

  model_cache do
    with_key
    with_association :user, :comments
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
simple_cacheable-1.2.1 spec/models/post.rb
simple_cacheable-1.2.0 spec/models/post.rb
simple_cacheable-1.1.5 spec/models/post.rb
simple_cacheable-1.1.4 spec/models/post.rb
simple_cacheable-1.1.3 spec/models/post.rb
simple_cacheable-1.1.2 spec/models/post.rb
simple_cacheable-1.1.1 spec/models/post.rb
simple_cacheable-1.1.0 spec/models/post.rb