test/model/book.rb in second_level_cache-2.2.6 vs test/model/book.rb in second_level_cache-2.3.0.beta
- old
+ new
@@ -4,10 +4,10 @@
t.integer :user_id
t.integer :images_count, default: 0
end
class Book < ActiveRecord::Base
- acts_as_cached
+ second_level_cache
belongs_to :user, counter_cache: true
has_many :images, as: :imagable
end