projects
/
gitmo/Moose.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
e601e43
)
class_of for BUILDARGS
Shawn M Moore [Sat, 28 Mar 2009 21:06:11 +0000 (17:06 -0400)]
lib/Moose/Object.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Moose/Object.pm
b/lib/Moose/Object.pm
index
cd35358
..
829c90d
100644
(file)
--- a/
lib/Moose/Object.pm
+++ b/
lib/Moose/Object.pm
@@
-23,7
+23,7
@@
sub BUILDARGS {
my $class = shift;
if ( scalar @_ == 1 ) {
unless ( defined $_[0] && ref $_[0] eq 'HASH' ) {
- $class->meta->throw_error(
+ Class::MOP::class_of($class)->throw_error(
"Single parameters to new() must be a HASH ref",
data => $_[0] );
}