From: Marcus Ramberg Date: Fri, 5 Dec 2008 14:53:43 +0000 (+0000) Subject: Revert unwanted MMM::Accessor change X-Git-Tag: 0.62_02~6 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=16588b40912e7cd0e2177c34df3130a2636e4bc8;p=gitmo%2FMoose.git Revert unwanted MMM::Accessor change --- diff --git a/lib/Moose/Meta/Method/Accessor.pm b/lib/Moose/Meta/Method/Accessor.pm index fac4106..b6852f7 100644 --- a/lib/Moose/Meta/Method/Accessor.pm +++ b/lib/Moose/Meta/Method/Accessor.pm @@ -32,7 +32,6 @@ sub _eval_code { : undef; #warn "code for $attr_name =>\n" . $code . "\n"; - confess unless blessed $self; my $sub = eval $code; $self->throw_error("Could not create writer for '$attr_name' because $@ \n code: $code", error => $@, data => $code ) if $@; return $sub;