[Jifty-commit] r2872 - in Jifty-DBI/branches/od: .

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Wed Feb 28 15:18:50 EST 2007


Author: jesse
Date: Wed Feb 28 15:18:49 2007
New Revision: 2872

Modified:
   Jifty-DBI/branches/od/   (props changed)
   Jifty-DBI/branches/od/lib/Jifty/DBI/Record/Plugin.pm

Log:
 r48599 at pinglin:  jesse | 2007-02-28 14:24:49 -0500
  * plugins can now export subs


Modified: Jifty-DBI/branches/od/lib/Jifty/DBI/Record/Plugin.pm
==============================================================================
--- Jifty-DBI/branches/od/lib/Jifty/DBI/Record/Plugin.pm	(original)
+++ Jifty-DBI/branches/od/lib/Jifty/DBI/Record/Plugin.pm	Wed Feb 28 15:18:49 2007
@@ -2,7 +2,10 @@
 
 use warnings;
 use strict;
-use Carp;
+
+
+use base qw/Exporter/;
+
 
 sub import {
     my $self = shift;
@@ -11,7 +14,9 @@
             $caller->COLUMNS->{$_->name} = $_ ;
             $caller->_init_methods_for_column($_);
     }
- return 1;
+    $self->export_to_level(1,undef);
 }
 
+
+
 1;


More information about the Jifty-commit mailing list