Changeset 10371 for lang/perl/Jipotter

Show
Ignore:
Timestamp:
04/25/08 00:50:45 (5 years ago)
Author:
charsbar
Message:

should've used blessed...

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/Jipotter/branches/Cipotter/lib/Cipotter/Model/DB.pm

    r9879 r10371  
    44use warnings; 
    55use parent qw( Catalyst::Model::Jifty::DBI Cipotter::Component ); 
     6use Scalar::Util qw( blessed ); 
    67 
    78__PACKAGE__->config( 
     
    1718sub timelines { 
    1819  my $self = shift; 
    19   my $c    = $_[0]->isa('Catalyst') ? shift : undef; 
     20  my $c    = blessed $_[0] && $_[0]->isa('Catalyst') ? shift : undef; 
    2021  my %args = @_; 
    2122