diff --git a/lib/graphql/serializers/anycable_subscription_serializer.rb b/lib/graphql/serializers/anycable_subscription_serializer.rb index 67bcb71..14a38f1 100644 --- a/lib/graphql/serializers/anycable_subscription_serializer.rb +++ b/lib/graphql/serializers/anycable_subscription_serializer.rb @@ -12,9 +12,6 @@ def serialize(subscription) end def deserialize(payload) - payload[:schema] = payload[:schema].safe_constantize - payload[:serializer] = payload[:serializer].safe_constantize - GraphQL::Subscriptions::AnyCableSubscriptions.new(**payload) end end diff --git a/lib/graphql/subscriptions/anycable_subscriptions.rb b/lib/graphql/subscriptions/anycable_subscriptions.rb index a2b3a6c..3eb7bcc 100644 --- a/lib/graphql/subscriptions/anycable_subscriptions.rb +++ b/lib/graphql/subscriptions/anycable_subscriptions.rb @@ -256,12 +256,7 @@ def redis_key(prefix) end def collect_arguments(serializer, payload) - payload = payload.dup - - payload[:serializer] = serializer.to_s - payload[:schema] = payload[:schema].to_s - - payload + payload.merge(serializer: serializer) end end end