Skip to content

Commit 167624e

Browse files
committed
skip loading if unstable or rc
1 parent 8fdc1f3 commit 167624e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/shopify_api/context.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@ def load_rest_resources(api_version:)
101101
@rest_resource_loader&.setup
102102
@rest_resource_loader&.unload
103103

104+
# No resources for the unstable version or the release candidate version
105+
return if api_version == "unstable" || api_version == RELEASE_CANDIDATE_ADMIN_VERSION
106+
104107
version_folder_name = api_version.gsub("-", "_")
105108

106109
path = "#{__dir__}/rest/resources/#{version_folder_name}"

0 commit comments

Comments
 (0)