comparison Lib/IMPL/Config/Activator.pm @ 89:3d1f584aea60

small fix in the activator and secure cookie
author wizard
date Wed, 21 Apr 2010 17:39:45 +0400
parents 8d0ae27d15c1
children 0667064553ef
comparison
equal deleted inserted replaced
88:0d2337e203c0 89:3d1f584aea60
42 } 42 }
43 43
44 push @args, map UNIVERSAL::isa($_,'IMPL::Config::Activator') ? $_->activate : $_, @_ if @_; 44 push @args, map UNIVERSAL::isa($_,'IMPL::Config::Activator') ? $_->activate : $_, @_ if @_;
45 45
46 my $factory = $this->factory; 46 my $factory = $this->factory;
47 eval "require $factory; 1;" unless not ref $factory and _is_class($factory); 47 eval "require $factory; 1;" unless ref $factory or _is_class($factory);
48 48
49 return $this->object($factory->new(@args)); 49 return $this->object($factory->new(@args));
50 } else { 50 } else {
51 return $this->object; 51 return $this->object;
52 } 52 }