From: Rafael Kitover Date: Sun, 28 Jun 2009 12:40:37 +0000 (+0000) Subject: >table(\"table") X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=74b8c39fb8a7fdddc7912dd8d868974876bc0abd;p=dbsrgits%2FDBIx-Class-Historic.git >table(\"table") --- diff --git a/lib/DBIx/Class/ResultSourceProxy/Table.pm b/lib/DBIx/Class/ResultSourceProxy/Table.pm index 5cfe4f3..3a322cc 100644 --- a/lib/DBIx/Class/ResultSourceProxy/Table.pm +++ b/lib/DBIx/Class/ResultSourceProxy/Table.pm @@ -6,6 +6,7 @@ use warnings; 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 @@ Gets or sets the table name. 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||{}} : (),