diff options
author | groditi <groditi@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2008-03-14 00:05:37 +0000 |
---|---|---|
committer | groditi <groditi@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2008-03-14 00:05:37 +0000 |
commit | 1190b47503b6c022438520ca85d0af47d8474669 (patch) | |
tree | a9cca91b35c5d2ddfc3c32f5c08cb650c854bf63 /lib/Reaction/Types | |
parent | fb32a4e06a459a4204ef7d9ac6619ff48b88166a (diff) | |
download | reaction-1190b47503b6c022438520ca85d0af47d8474669.tar.gz reaction-1190b47503b6c022438520ca85d0af47d8474669.zip |
fix URI type
Diffstat (limited to 'lib/Reaction/Types')
-rw-r--r-- | lib/Reaction/Types/Core.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Reaction/Types/Core.pm b/lib/Reaction/Types/Core.pm index 42c6ca3..559e48f 100644 --- a/lib/Reaction/Types/Core.pm +++ b/lib/Reaction/Types/Core.pm @@ -49,8 +49,9 @@ subtype SingleDigit, where { $_ <= 9 }, message { "Must be a single digit" }; - -class_type 'URI', message { 'Must be an URI object'}; +#message will require moose 0.39 +class_type 'URI'; +#class_type 'URI', message { 'Must be an URI object'}; coerce 'URI', from 'Str', via { URI->new($_) }; 1; |