Skip to content

Commit

Permalink
Merge pull request #415 from jrafanie/guard_against_hitting_const_mis…
Browse files Browse the repository at this point in the history
…sing_within_const_missing

Guard against hitting const_missing from within const_missing
  • Loading branch information
gmcculloug authored Feb 3, 2020
2 parents c16b980 + 3f4ea2c commit 358772c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/miq_automation_engine/engine/miq_ae_method_service.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
module MiqAeMethodService
def self.const_missing(name)
super unless defined?(MiqAeServiceModelBase)

MiqAeServiceModelBase.create_service_model_from_name(name) || super
end
end
Expand Down

0 comments on commit 358772c

Please sign in to comment.