Make ignore_version connect attr more robust
[dbsrgits/DBIx-Class-DeploymentHandler.git] / lib / DBIx / Class / DeploymentHandler / VersionStorage / Standard / Component.pm
index 578bd3b..4d63a24 100644 (file)
@@ -20,7 +20,7 @@ sub connection  {
 
   $self->attach_version_storage;
 
-  my $args = $_[3] || {};
+  my $args = $self->storage->_dbic_connect_attributes;
 
   unless ( $args->{ignore_version} || $ENV{DBIC_NO_VERSION_CHECK}) {
     my $versions = $self->resultset('__VERSION');