diff --git a/lib/graphql/fragment_cache/railtie.rb b/lib/graphql/fragment_cache/railtie.rb index b92ddaf..eca8776 100644 --- a/lib/graphql/fragment_cache/railtie.rb +++ b/lib/graphql/fragment_cache/railtie.rb @@ -26,7 +26,9 @@ def store=(store) if ENV["RACK_ENV"] == "test" || ENV["RAILS_ENV"] == "test" initializer "graphql-fragment_cache" do - config.graphql_fragment_cache.store = if Rails.version.to_f >= 7.0 + config.graphql_fragment_cache.store = if Rails.version.to_f >= 8.0 + [:null_store] + elsif Rails.version.to_f >= 7.0 [:null_store, serializer: :marshal_7_0] else :null_store