X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass.pm;h=f59fc224e2ef487097fa4a4cc0b2b4e061122af8;hb=7ed3d6dc7d83264aa67108ec304985c0116d6009;hp=4255db6b5c46907c4ca19278317a6679ad6c90b4;hpb=dec2517f954b8c6053570a6b5ecf08fbaf1a2bc2;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/lib/DBIx/Class.pm b/lib/DBIx/Class.pm index 4255db6..f59fc22 100644 --- a/lib/DBIx/Class.pm +++ b/lib/DBIx/Class.pm @@ -13,19 +13,22 @@ sub component_base_class { 'DBIx::Class' } # i.e. first release of 0.XX *must* be 0.XX000. This avoids fBSD ports # brain damage and presumably various other packaging systems too -$VERSION = '0.05004'; +$VERSION = '0.05999_04'; sub MODIFY_CODE_ATTRIBUTES { my ($class,$code,@attrs) = @_; - unless ($class->can('_attr_cache')) { - $class->mk_classdata('_attr_cache'); - $class->_attr_cache({}); - } - my $cache = $class->_attr_cache; - $class->_attr_cache->{$code} = [@attrs]; + $class->mk_classdata('__attr_cache' => {}) unless $class->can('__attr_cache'); + $class->__attr_cache->{$code} = [@attrs]; return (); } +sub _attr_cache { + my $self = shift; + my $cache = $self->can('__attr_cache') ? $self->__attr_cache : {}; + my $rest = eval { $self->next::method }; + return $@ ? $cache : { %$cache, %$rest }; +} + 1; =head1 NAME @@ -122,46 +125,56 @@ Matt S. Trout =head1 CONTRIBUTORS +Alexander Hartmaier + Andy Grundman -Brian Cassidy +Andres Kievsky -Dan Kubb +Brandon Black -Dan Sully +Brian Cassidy -David Kamholz +Christopher H. Laco -Jules Bean +CL Kao -Marcus Ramberg +Daisuke Murase -Paul Makepeace +Dan Kubb -CL Kao +Dan Sully -Jess Robinson +Daniel Westermann-Clark -Marcus Ramberg +David Kamholz -Will Hawes +Jesper Krogh -Todd Lipcon +Jess Robinson -Daniel Westermann-Clark +Jules Bean -Alexander Hartmaier +Justin Guenther -Zbigniew Lukasiak +Marcus Ramberg Nigel Metheringham -Jesper Krogh +Paul Makepeace -Brandon Black +Robert Sedlacek + +sc_ of irc.perl.org#dbix-class + +Scott McWhirter (konobi) Scotty Allen +Todd Lipcon + +Will Hawes + =head1 LICENSE You may distribute this code under the same terms as Perl itself.