diff --git a/lib/extensions/as_include_concern.rb b/lib/extensions/as_include_concern.rb index 6e555ad530a..b4d336935e7 100644 --- a/lib/extensions/as_include_concern.rb +++ b/lib/extensions/as_include_concern.rb @@ -49,7 +49,8 @@ def include_concern(mod) begin to_include = "#{name}::#{mod}" require_dependency to_include.underscore - rescue LoadError + rescue LoadError => err + raise unless err.message.include?(to_include.underscore) to_include = mod require_dependency to_include.underscore end