spec/models/post.rb in simple_cacheable-1.2.1 vs spec/models/post.rb in simple_cacheable-1.3.0
- old
+ new
@@ -4,8 +4,9 @@
belongs_to :user
has_many :comments, :as => :commentable
model_cache do
with_key
+ with_attribute :user_id
with_association :user, :comments
end
end