Permalink
Browse files

datetime always raw

  • Loading branch information...
rodrigolive committed Mar 23, 2011
1 parent 07a3906 commit eb7afd397bb463812505e63a650c6a8919ad0b1d
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/Mongoose/Engine/Base.pm
@@ -104,6 +104,9 @@ sub _unbless {
my @objs = $obj->_save( $self, @scope );
$ret = \@objs;
}
+ } elsif( ref $obj eq 'DateTime' ) {
+ # DateTime as raw always
+ $ret = $obj;
} else {
# non-moose class
my $reftype = reftype($obj);

0 comments on commit eb7afd3

Please sign in to comment.