We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47e20cc commit 98f2ecfCopy full SHA for 98f2ecf
lib/miq_automation_engine/engine/miq_ae_method_service/miq_ae_service_model_base.rb
@@ -129,7 +129,9 @@ def self.find_or_create_service_model(ar_model)
129
def self.create_service_model(ar_model)
130
file_path = model_to_file_path(ar_model)
131
if File.exist?(file_path)
132
- require file_path
+ # class reloading in development causes require to no-op when it should load
133
+ # since we will never require this file, using load is not a big loss
134
+ load file_path
135
::MiqAeMethodService.const_get(model_to_service_model_name(ar_model))
136
else
137
dynamic_service_model_creation(ar_model, service_model_superclass(ar_model))
0 commit comments