Skip to content

Commit 13d04c5

Browse files
authored
don't try to load model_base with zeitwerk (#1018)
1 parent 1d0165c commit 13d04c5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/datadog_api_client.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,7 @@
77
loader.collapse("#{__dir__}/datadog_api_client/*/api/")
88
loader.push_dir("#{__dir__}/datadog_api_client/v1", namespace: DatadogAPIClient::V1)
99
loader.push_dir("#{__dir__}/datadog_api_client/v2", namespace: DatadogAPIClient::V2)
10+
# Ignore model_base.rb from being loaded in by zeitwerk as it is loaded in by default
11+
loader.ignore("#{__dir__}/datadog_api_client/*/model_base.rb")
1012
loader.inflector = DatadogAPIClient::DatadogAPIClientInflector.new
1113
loader.setup

0 commit comments

Comments
 (0)