From: Arthur Axel 'fREW' Schmidt Date: Sun, 10 Jul 2011 06:19:44 +0000 (-0500) Subject: Fix documentation for in the Cookbook X-Git-Tag: v0.001006~13 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8bb2f1ac7ad65531f27e24967076fa133f08da93;p=dbsrgits%2FDBIx-Class-DeploymentHandler.git Fix documentation for in the Cookbook --- diff --git a/Changes b/Changes index 8de1fd5..c9a9b92 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,7 @@ Revision history for {{$dist->name}} {{$NEXT}} + - Fix documentation for in the Cookbook (moltar) 0.001005 2011-04-13 15:21:08 CST6CDT - Add _any "version" for running code for all versions diff --git a/lib/DBIx/Class/DeploymentHandler/Cookbook/CustomResultSource.pod b/lib/DBIx/Class/DeploymentHandler/Cookbook/CustomResultSource.pod index 2f1b79d..42cf2d0 100644 --- a/lib/DBIx/Class/DeploymentHandler/Cookbook/CustomResultSource.pod +++ b/lib/DBIx/Class/DeploymentHandler/Cookbook/CustomResultSource.pod @@ -72,17 +72,19 @@ table being set on the original result. sub prepare_version_storage_install { my $self = shift; - $self->prepare_resultsource_install( - $self->version_storage->version_rs->result_source - ); + $self->prepare_resultsource_install({ + result_source => $self->version_storage->version_rs->result_source + }); } sub install_version_storage { my $self = shift; - $self->install_resultsource( - $self->version_storage->version_rs->result_source - ); + my $version = (shift || {})->{version} || $self->schema_version; + $self->install_resultsource({ + result_source => $self->version_storage->version_rs->result_source, + version => $version, + }); } sub prepare_install {