Skip to content

Commit 91704e9

Browse files
Fix nullstore serializer
1 parent 5d72681 commit 91704e9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/graphql/fragment_cache/railtie.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ def store=(store)
2626

2727
if ENV["RACK_ENV"] == "test" || ENV["RAILS_ENV"] == "test"
2828
initializer "graphql-fragment_cache" do
29-
config.graphql_fragment_cache.store = if Rails.version.to_f >= 7.0
29+
config.graphql_fragment_cache.store = if Rails.version.to_f >= 8.0
30+
[:null_store]
31+
elsif Rails.version.to_f >= 7.0
3032
[:null_store, serializer: :marshal_7_0]
3133
else
3234
:null_store

0 commit comments

Comments
 (0)