From: Naveed Massjouni <naveedm9@gmail.com>
Date: Tue, 11 Mar 2014 01:43:08 +0000 (-0400)
Subject: fixed example in the DBIx::Class::Storage::DBI::Replicated synopsis
X-Git-Tag: v0.082800~231
X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=592fa86fab66a8c2d89b7aa45b958be2842f2805;p=dbsrgits%2FDBIx-Class.git

fixed example in the DBIx::Class::Storage::DBI::Replicated synopsis

The example in the synopsis does not work. It should be
{ balancer_type => '::Random' } instead of { balancer => '::Random' }
---

diff --git a/lib/DBIx/Class/Storage/DBI/Replicated.pm b/lib/DBIx/Class/Storage/DBI/Replicated.pm
index 648072c..3c58716 100644
--- a/lib/DBIx/Class/Storage/DBI/Replicated.pm
+++ b/lib/DBIx/Class/Storage/DBI/Replicated.pm
@@ -37,7 +37,7 @@ also define your arguments, such as which balancer you want and any arguments
 that the Pool object should get.
 
   my $schema = Schema::Class->clone;
-  $schema->storage_type( ['::DBI::Replicated', {balancer=>'::Random'}] );
+  $schema->storage_type(['::DBI::Replicated', { balancer_type => '::Random' }]);
   $schema->connection(...);
 
 Next, you need to add in the Replicants.  Basically this is an array of