X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass.pm;h=0a0bce5b10656dfab91293c47562bacbbfc916b9;hb=a58cd74bdd07f968d65ab67ffb95e7d76ed3dd75;hp=7765f9a70e3e74adeba57ef7bbc3ef832f327b4e;hpb=fc69fea6a8923cb40755446f1bb914174f53114c;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/lib/DBIx/Class.pm b/lib/DBIx/Class.pm index 7765f9a..0a0bce5 100644 --- a/lib/DBIx/Class.pm +++ b/lib/DBIx/Class.pm @@ -13,7 +13,21 @@ 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.05000'; +$VERSION = '0.05999_04'; + +sub MODIFY_CODE_ATTRIBUTES { + my ($class,$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; @@ -83,23 +97,27 @@ manual below. =head1 SEE ALSO -=head2 L - DBIC Core Classes +=over 4 -=head2 L - User's manual +=item L - DBIC Core Classes -=head2 L - L Compat layer +=item L - User's manual -=head2 L - database-level methods +=item L - L Compat layer -=head2 L - table-level methods +=item L -=head2 L - row-level methods +=item L -=head2 L - primary key methods +=item L -=head2 L - search result-set methods +=item L - row-level methods -=head2 L - relationships between tables +=item L - primary key methods + +=item L - relationships between tables + +=back =head1 AUTHOR @@ -145,6 +163,20 @@ Jesper Krogh Brandon Black +Christopher H. Laco + +Scotty Allen + +sc_ + +Robert Sedlacek + +Daisuke Murase + +Scott McWhirter (konobi) + =head1 LICENSE You may distribute this code under the same terms as Perl itself.