From: Rafael Kitover Date: Sat, 24 Jul 2010 23:14:43 +0000 (+0000) Subject: add use_moose=1 to loader opts for create=static, release X-Git-Tag: v0.42^0 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Model-DBIC-Schema.git;a=commitdiff_plain;h=4f907946f731283a5b498dccd893bd14939b2b10 add use_moose=1 to loader opts for create=static, release --- diff --git a/Changes b/Changes index 2085137..09ed79a 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,8 @@ Revision history for Perl extension Catalyst::Model::DBIC::Schema +0.42 Sat Jul 24 23:14:27 UTC 2010 + - add use_moose=1 to loader options by default for create=static + 0.41 Wed Apr 28 08:42:13 EDT 2010 - allow configuring ResultSets using the SchemaProxy trait diff --git a/lib/Catalyst/Helper/Model/DBIC/Schema.pm b/lib/Catalyst/Helper/Model/DBIC/Schema.pm index eb89068..d10e76a 100644 --- a/lib/Catalyst/Helper/Model/DBIC/Schema.pm +++ b/lib/Catalyst/Helper/Model/DBIC/Schema.pm @@ -4,7 +4,7 @@ use namespace::autoclean; use Moose; no warnings 'uninitialized'; -our $VERSION = '0.41'; +our $VERSION = '0.42'; $VERSION = eval $VERSION; use Carp; @@ -265,6 +265,7 @@ sub _parse_loader_args { %result = ( relationships => 1, + use_moose => 1, (!$self->old_schema ? ( use_namespaces => 1 ) : ()), diff --git a/lib/Catalyst/Model/DBIC/Schema.pm b/lib/Catalyst/Model/DBIC/Schema.pm index 8ef4bf4..3de4782 100644 --- a/lib/Catalyst/Model/DBIC/Schema.pm +++ b/lib/Catalyst/Model/DBIC/Schema.pm @@ -5,7 +5,7 @@ use mro 'c3'; extends 'Catalyst::Model'; with 'CatalystX::Component::Traits'; -our $VERSION = '0.41'; +our $VERSION = '0.42'; $VERSION = eval $VERSION; use namespace::autoclean;