switch to MX::Traits, document attributes
[catagits/Catalyst-Model-DBIC-Schema.git] / lib / Catalyst / Model / DBIC / Schema / Trait / Replicated.pm
index b73246c..6826a4c 100644 (file)
@@ -43,17 +43,6 @@ L<DBIx::Class::Storage::DBI::Replicated::Balancer::Random/master_read_weight> to
 C<1> by default, meaning that you have the same chance of reading from master as
 you do from replicants. Set to C<0> to turn off reads from master.
 
-=head1 NOTE ON L<DBIx::Class> VERSIONS PRIOR TO 0.08103
-
-This trait will work, however, any C<::Storage::Replicated> options in
-L<Catalyst::Model::DBIC::Schema/connect_info> will be ignored, master
-connect_info will not be merged to replicants, and
-L<DBIx::Class::Storage::DBI::Replicated::Balancer::First> will be used instead,
-with all your reads going only to one of your replicants. You'll also get some
-warnings. The C<Caching> trait will also not work.
-
-Please upgrade.
-
 =head1 CONFIG PARAMETERS
 
 =head2 replicants
@@ -90,11 +79,13 @@ after setup => sub {
     }
 };
 
-after finalize => sub {
+my $build = sub {
     my $self = shift;
 
     $self->storage->connect_replicants(map [ $_ ], $self->replicants->flatten);
 };
+after BUILD => $build;
+sub BUILD { goto $build }
 
 =head1 SEE ALSO
 
@@ -104,7 +95,7 @@ L<Cache::FastMmap>, L<DBIx::Class::Cursor::Cached>
 
 =head1 AUTHOR
 
-Rafael Kitover, C<rkitover@cpan.org>
+Rafael Kitover, C<rkitover at cpan.org>
 
 =head1 COPYRIGHT