support single replicant from config
[catagits/Catalyst-Model-DBIC-Schema.git] / lib / Catalyst / Model / DBIC / Schema / Types.pm
index a7ec807..dae2da4 100644 (file)
@@ -57,6 +57,8 @@ coerce ConnectInfos,
     via { [ _coerce_connect_info_from_str() ] },
     from CodeRef,
     via { [ +{ dbh_maker => $_ } ]  },
+    from HashRef,
+    via { [ $_ ] },
     from ArrayRef,
     via { [ map {
         !ref $_ ? _coerce_connect_info_from_str()