projects
/
gitmo/Moose.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
2deb99f
)
remove the number check from M:M:Constructor.pm to fix failing tests in t/100/019_*.t
Chris Prather [Fri, 21 Nov 2008 17:32:18 +0000 (17:32 +0000)]
lib/Moose/Meta/Method/Constructor.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Moose/Meta/Method/Constructor.pm
b/lib/Moose/Meta/Method/Constructor.pm
index
d7d7360
..
626f4ab
100644
(file)
--- a/
lib/Moose/Meta/Method/Constructor.pm
+++ b/
lib/Moose/Meta/Method/Constructor.pm
@@
-336,11
+336,8
@@
sub _generate_default_value {
else {
my $default = $attr->default;
# make sure to quote strings ...
- unless (looks_like_number($default)) {
- $default = "'$default'";
- }
-
- return $default;
+ return "'$default'";
+
}
}