[Jifty-commit] r2666 - in Jifty-DBI/branches/od: t

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Sat Jan 27 08:07:42 EST 2007


Author: audreyt
Date: Sat Jan 27 08:07:41 2007
New Revision: 2666

Modified:
   Jifty-DBI/branches/od/lib/Jifty/DBI/Schema.pm
   Jifty-DBI/branches/od/t/11schema_records.t

Log:
* Jifty::DBI::Schema - Rescind "refers Foo::Bar" support as it's not English.

Modified: Jifty-DBI/branches/od/lib/Jifty/DBI/Schema.pm
==============================================================================
--- Jifty-DBI/branches/od/lib/Jifty/DBI/Schema.pm	(original)
+++ Jifty-DBI/branches/od/lib/Jifty/DBI/Schema.pm	Sat Jan 27 08:07:41 2007
@@ -70,7 +70,6 @@
         as          => '',
         ajax        => 'ajax_',
         refers_to   => sub { refers_to => @_ },
-        refers      => sub { refers_to => @_ },
     },
 );
 use Class::Data::Inheritable;
@@ -78,6 +77,10 @@
 
 our @EXPORT = qw( defer lazy column schema by render_as since till );
 
+### We could export these two and make "refers to Foo::Bar" work, but it breaks when "by" is given. 
+# sub refers ($) { $_[0]->refers_to }
+# sub to (*) { $_[0] }
+
 sub by ($) { @_ }
 sub render_as ($) { render as @_ }
 sub since ($) { since is @_ }

Modified: Jifty-DBI/branches/od/t/11schema_records.t
==============================================================================
--- Jifty-DBI/branches/od/t/11schema_records.t	(original)
+++ Jifty-DBI/branches/od/t/11schema_records.t	Sat Jan 27 08:07:41 2007
@@ -266,7 +266,7 @@
     use Jifty::DBI::Schema;
     use Jifty::DBI::Record schema {
     column name => type is 'varchar';
-    column phones => refers TestApp::PhoneCollection by 'employee';
+    column phones => refers_to TestApp::PhoneCollection by 'employee';
     }
 }
 


More information about the Jifty-commit mailing list