From 80ef9677be9a46c420723bcad0c895aab05e7b6b Mon Sep 17 00:00:00 2001 From: Kevin Pratt Date: Tue, 6 Aug 2024 14:01:39 -0600 Subject: [PATCH] Require ostruct so that it is there all the time --- lib/dato_cms_graphql/base_query.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/dato_cms_graphql/base_query.rb b/lib/dato_cms_graphql/base_query.rb index 8fe7110..9d400ec 100644 --- a/lib/dato_cms_graphql/base_query.rb +++ b/lib/dato_cms_graphql/base_query.rb @@ -1,4 +1,5 @@ require_relative "model_iterator" +require "ostruct" module DatoCmsGraphql class BaseQuery @@ -66,7 +67,7 @@ def query_for parse <<~GRAPHQL query($skip: IntType) { - #{localized_items.join("\n")} + #{localized_items.join("\n")} } GRAPHQL end @@ -88,7 +89,7 @@ def query_for_single parse <<~GRAPHQL query { - #{localized_item.join("\n")} + #{localized_item.join("\n")} } GRAPHQL end