We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f751fc commit 70604bbCopy full SHA for 70604bb
test/cache_test.rb
@@ -151,8 +151,11 @@ class InheritedRoleSerializer < RoleSerializer
151
@blog_serializer = BlogSerializer.new(@blog)
152
end
153
154
- def test_expire_of_cache
155
- ARModels::Author.cache_versioning = true
+ def test_expiring_of_cache_at_update_of_record
+ if ARModels::Author.respond_to?(:cache_versioning)
156
+ ARModels::Author.cache_versioning = true
157
+ end
158
+
159
author = ARModels::Author.create(name: 'Foo')
160
author_json = AuthorSerializerWithCache.new(author).as_json
161
0 commit comments