From: Dave Rolsky Date: Thu, 4 Sep 2008 21:13:23 +0000 (+0000) Subject: Turn on coercion for birth_date X-Git-Tag: 0.58~49 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=9ffad320cb2004a1818647d1371f72ffa270af82;p=gitmo%2FMoose.git Turn on coercion for birth_date --- diff --git a/lib/Moose/Unsweetened.pod b/lib/Moose/Unsweetened.pod index 4799be4..e72b08a 100644 --- a/lib/Moose/Unsweetened.pod +++ b/lib/Moose/Unsweetened.pod @@ -41,8 +41,9 @@ First, we define two very small classes the Moose way. => via { $en_parser->parse_datetime($_) }; has birth_date => ( - is => 'rw', - isa => 'DateTime', + is => 'rw', + isa => 'DateTime', + coerce => 1, ); subtype 'ShirtSize'