Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed connect_info for slave

  • Loading branch information...
commit e54abce32232d8c939c11cc8823ba7e3375cfe9f 1 parent f5f55e5
@dann authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 angelos-core/lib/Angelos/ORM/DBIC/Schema.pm
View
5 angelos-core/lib/Angelos/ORM/DBIC/Schema.pm
@@ -40,10 +40,9 @@ sub master {
sub slave {
my $class = shift;
- return unless $class->config->{'database'};
- return unless $class->config->{'database'}->{'slave'};
+ return unless $class->config->database->{slave};
my $connect_info
- = $class->config->{'database'}->{'slave'}->{'connect_info'};
+ = $class->config->database->{'slave'}->{'connect_info'};
$class->slave_schema($class->connect( @{$connect_info} )) unless $class->slave_schema;
$class->slave_schema;
}

0 comments on commit e54abce

Please sign in to comment.
Something went wrong with that request. Please try again.