projects
/
gitmo/Moose.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
75f9991
)
pass hashrefs to _new
Yuval Kogman [Thu, 14 Aug 2008 09:00:08 +0000 (09:00 +0000)]
lib/Moose/Meta/Role/Application.pm
patch
|
blob
|
blame
|
history
lib/Moose/Meta/TypeConstraint/Enum.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Moose/Meta/Role/Application.pm
b/lib/Moose/Meta/Role/Application.pm
index
dfad321
..
0241bdb
100644
(file)
--- a/
lib/Moose/Meta/Role/Application.pm
+++ b/
lib/Moose/Meta/Role/Application.pm
@@
-29,7
+29,7
@@
sub new {
: [ $params{excludes} ]);
}
- $class->_new(%params);
+ $class->_new(\%params);
}
sub is_method_excluded {
diff --git
a/lib/Moose/Meta/TypeConstraint/Enum.pm
b/lib/Moose/Meta/TypeConstraint/Enum.pm
index
570433f
..
65d8a56
100644
(file)
--- a/
lib/Moose/Meta/TypeConstraint/Enum.pm
+++ b/
lib/Moose/Meta/TypeConstraint/Enum.pm
@@
-20,7
+20,7
@@
sub new {
$args{parent} = Moose::Util::TypeConstraints::find_type_constraint('Str');
- my $self = $class->_new(%args);
+ my $self = $class->_new(\%args);
$self->compile_type_constraint()
unless $self->_has_compiled_type_constraint;