[Bps-public-commit] r14479 - in sd/trunk: .

sartak at bestpractical.com sartak at bestpractical.com
Thu Jul 24 11:30:24 EDT 2008


Author: sartak
Date: Thu Jul 24 11:30:22 2008
New Revision: 14479

Modified:
   sd/trunk/   (props changed)
   sd/trunk/lib/App/SD/Record.pm

Log:
 r65025 at onn:  sartak | 2008-07-24 11:30:07 -0400
 Eek! Don't set on get..
 This isn't really necessary anymore anyway - the one database we have has creation dates now


Modified: sd/trunk/lib/App/SD/Record.pm
==============================================================================
--- sd/trunk/lib/App/SD/Record.pm	(original)
+++ sd/trunk/lib/App/SD/Record.pm	Thu Jul 24 11:30:22 2008
@@ -11,19 +11,6 @@
 
 extends 'Prophet::Record';
 
-around get_props => sub {
-    my ($next, $self, @args) = @_;
-    my $props = $self->$next(@args);
-
-    $self->set_props(props => { created => $props->{date} })
-      if !$props->{created} && $props->{date};
-
-    $self->set_props(props => {date => undef})
-      if $props->{date};
-
-    return $self->$next(@args);
-};
-
 sub canonicalize_prop_created {
     my $self = shift;
     my %args = validate(@_, { props => 1, errors => 1});



More information about the Bps-public-commit mailing list