X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass.pm;h=1d055946658687fd33c00bac4c105d37bd598091;hb=aeb669b82b47ddabb73a36b9062d7cc616dcc112;hp=1036b53a926c0ee210fc76d7d4a4ab75bc7015b2;hpb=2e4b6d78ee21dd4d4008470fe990f47e00e80c5c;p=dbsrgits%2FDBIx-Class.git diff --git a/lib/DBIx/Class.pm b/lib/DBIx/Class.pm index 1036b53..1d05594 100644 --- a/lib/DBIx/Class.pm +++ b/lib/DBIx/Class.pm @@ -11,7 +11,6 @@ use DBIx::Class::Optional::Dependencies; use vars qw($VERSION); use base qw/DBIx::Class::Componentised Class::Accessor::Grouped/; use DBIx::Class::StartupCheck; -use Try::Tiny; sub mk_classdata { shift->mk_classaccessor(@_); @@ -43,14 +42,11 @@ sub MODIFY_CODE_ATTRIBUTES { sub _attr_cache { my $self = shift; my $cache = $self->can('__attr_cache') ? $self->__attr_cache : {}; - my $rest; - my $exception; - try { - $rest = $self->next::method; - } catch { - $exception = 1; + + return { + %$cache, + %{ $self->maybe::next::method || {} }, }; - return $exception ? $cache : { %$cache, %$rest }; } 1; @@ -72,9 +68,9 @@ The community can be found via: =item * RT Bug Tracker: L -=item * SVNWeb: L +=item * gitweb: L -=item * SVN: L +=item * git: L =back @@ -229,6 +225,8 @@ abraxxa: Alexander Hartmaier aherzog: Adam Herzog +Alexander Keusch + amoore: Andrew Moore andyg: Andy Grundman @@ -347,6 +345,8 @@ quicksilver: Jules Bean rafl: Florian Ragwitz +rbo: Robert Bohne + rbuels: Robert Buels rdj: Ryan D Johnson