X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FInflateColumn%2FDateTime.pm;h=2b40608952090cbc8623a96cbfa88abeacd64e16;hb=4c4964c14a9d0b6568102ee9e2dcb14f3bb0fd17;hp=a7a13a682939b090099eee1645f88328c8dcd2be;hpb=9c71b5e27a7a1c8e9c4cfc03bc9c29b5b1b655af;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/lib/DBIx/Class/InflateColumn/DateTime.pm b/lib/DBIx/Class/InflateColumn/DateTime.pm index a7a13a6..2b40608 100644 --- a/lib/DBIx/Class/InflateColumn/DateTime.pm +++ b/lib/DBIx/Class/InflateColumn/DateTime.pm @@ -71,7 +71,7 @@ that this feature is new as of 0.07, so it may not be perfect yet - bug reports to the list very much welcome). If the data_type of a field is C, C or C (or -a derivative of these datatypes, e.g. C, this +a derivative of these datatypes, e.g. C), this module will automatically call the appropriate parse/format method for deflation/inflation as defined in the storage class. For instance, for a C field the methods C and C @@ -86,8 +86,6 @@ For more help with using components, see L __PACKAGE__->load_components(qw/InflateColumn/); -__PACKAGE__->mk_group_accessors('simple' => '__datetime_parser'); - =head2 register_column Chains with the L method, and sets @@ -224,12 +222,7 @@ sub _deflate_from_datetime { } sub _datetime_parser { - my $self = shift; - if (my $parser = $self->__datetime_parser) { - return $parser; - } - my $parser = $self->result_source->storage->datetime_parser(@_); - return $self->__datetime_parser($parser); + shift->result_source->storage->datetime_parser (@_); } 1;