[Bast-commits] r6824 -
DBIx-Class/0.08/branches/table_name_ref/lib/DBIx/Class/ResultSourceProxy
caelum at dev.catalyst.perl.org
caelum at dev.catalyst.perl.org
Sun Jun 28 12:40:40 GMT 2009
Author: caelum
Date: 2009-06-28 12:40:37 +0000 (Sun, 28 Jun 2009)
New Revision: 6824
Modified:
DBIx-Class/0.08/branches/table_name_ref/lib/DBIx/Class/ResultSourceProxy/Table.pm
Log:
->table(\"table")
Modified: DBIx-Class/0.08/branches/table_name_ref/lib/DBIx/Class/ResultSourceProxy/Table.pm
===================================================================
--- DBIx-Class/0.08/branches/table_name_ref/lib/DBIx/Class/ResultSourceProxy/Table.pm 2009-06-28 12:39:54 UTC (rev 6823)
+++ DBIx-Class/0.08/branches/table_name_ref/lib/DBIx/Class/ResultSourceProxy/Table.pm 2009-06-28 12:40:37 UTC (rev 6824)
@@ -6,6 +6,7 @@
use base qw/DBIx::Class::ResultSourceProxy/;
use DBIx::Class::ResultSource::Table;
+use Scalar::Util ();
__PACKAGE__->mk_classdata(table_class => 'DBIx::Class::ResultSource::Table');
@@ -75,7 +76,7 @@
sub table {
my ($class, $table) = @_;
return $class->result_source_instance->name unless $table;
- unless (ref $table) {
+ unless (Scalar::Util::blessed($table)) {
$table = $class->table_class->new({
$class->can('result_source_instance') ?
%{$class->result_source_instance||{}} : (),
More information about the Bast-commits
mailing list