Skip to content

Commit 51bf780

Browse files
elizasorbersle-c
authored andcommitted
Tackling issue #1296 Added indifferent access to create_instances_from_response in the ShopifyAPI::Rest::Base class.
1 parent c029d8a commit 51bf780

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/shopify_api/rest/base.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# frozen_string_literal: true
33

44
require "active_support/inflector"
5+
require 'active_support/all'
56

67
module ShopifyAPI
78
module Rest
@@ -248,7 +249,7 @@ def request(http_method:, operation:, session:, ids: {}, params: {}, body: nil,
248249
def create_instances_from_response(response:, session:)
249250
objects = []
250251

251-
body = T.cast(response.body, T::Hash[String, T.untyped])
252+
body = T.cast(response.body, T::Hash[String, T.untyped]).with_indifferent_access
252253

253254
response_names = json_response_body_names
254255

0 commit comments

Comments
 (0)