@@ -48,13 +48,13 @@ class CachingHasOneRelationshipSerializer < HasOneRelationshipSerializer
4848Rails . configuration . serializers << CachingHasOneRelationshipSerializer
4949
5050class CachingHasManyRelationshipSerializer < HasManyRelationshipSerializer
51- cache expires_in : 1 . day , skip_digest : true
51+ cache expires_in : 1 . day . to_i , skip_digest : true
5252end
5353Rails . configuration . serializers << CachingHasManyRelationshipSerializer
5454
5555# see https://github.com/rails-api/active_model_serializers/pull/1690/commits/68715b8f99bc29677e8a47bb3f305f23c077024b#r60344532
5656class CachingPrimaryResourceSerializer < ActiveModel ::Serializer
57- cache key : 'primary_resource' , expires_in : 0.1 , skip_digest : true
57+ cache key : 'primary_resource' , expires_in : 1 . day . to_i , skip_digest : true
5858
5959 attributes :id , :title , :body
6060
@@ -89,7 +89,7 @@ class FragmentCachingHasManyRelationshipSerializer < HasManyRelationshipSerializ
8989
9090# see https://github.com/rails-api/active_model_serializers/pull/1690/commits/68715b8f99bc29677e8a47bb3f305f23c077024b#r60344532
9191class FragmentCachingPrimaryResourceSerializer < ActiveModel ::Serializer
92- cache key : 'primary_resource' , expires_in : 0.1 , skip_digest : true
92+ cache key : 'primary_resource' , expires_in : 1 . day . to_i , skip_digest : true
9393
9494 attributes :id , :title , :body
9595
0 commit comments