diff --git a/lib/tapioca/runtime/reflection.rb b/lib/tapioca/runtime/reflection.rb index a17c678834..f8b0d4eaa1 100644 --- a/lib/tapioca/runtime/reflection.rb +++ b/lib/tapioca/runtime/reflection.rb @@ -48,7 +48,7 @@ def constant_defined?(constant) end def constantize(symbol, inherit: false, namespace: Object) namespace.const_get(symbol, inherit) - rescue NameError, LoadError, RuntimeError, ArgumentError, TypeError + rescue NameError, LoadError, RuntimeError, ArgumentError, TypeError, ActiveRecord::ConnectionNotEstablished UNDEFINED_CONSTANT end