Skip to content

Commit

Permalink
Fix nullstore serializer
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitryTsepelev committed Jan 6, 2025
1 parent 5d72681 commit 91704e9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/graphql/fragment_cache/railtie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 91704e9

Please sign in to comment.