[Bast-commits] r6826 -
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:55:13 GMT 2009
Author: caelum
Date: 2009-06-28 12:55:06 +0000 (Sun, 28 Jun 2009)
New Revision: 6826
Modified:
DBIx-Class/0.08/branches/table_name_ref/lib/DBIx/Class/ResultSourceProxy/Table.pm
Log:
revert
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:42:48 UTC (rev 6825)
+++ DBIx-Class/0.08/branches/table_name_ref/lib/DBIx/Class/ResultSourceProxy/Table.pm 2009-06-28 12:55:06 UTC (rev 6826)
@@ -6,7 +6,6 @@
use base qw/DBIx::Class::ResultSourceProxy/;
use DBIx::Class::ResultSource::Table;
-use Scalar::Util ();
__PACKAGE__->mk_classdata(table_class => 'DBIx::Class::ResultSource::Table');
@@ -76,7 +75,7 @@
sub table {
my ($class, $table) = @_;
return $class->result_source_instance->name unless $table;
- unless (Scalar::Util::blessed($table)) {
+ unless (ref $table) {
$table = $class->table_class->new({
$class->can('result_source_instance') ?
%{$class->result_source_instance||{}} : (),
More information about the Bast-commits
mailing list