--- trunk/lib/Frey/Run.pm 2008/11/05 08:20:57 285 +++ trunk/lib/Frey/Run.pm 2008/11/05 22:05:02 317 @@ -1,6 +1,6 @@ package Frey::Run; use Moose; -extends 'Frey'; +extends 'Frey::ClassLoader'; with 'Frey::Web'; with 'Frey::Config'; with 'Frey::Escape'; @@ -12,11 +12,11 @@ =head1 DESCRIPTION This object will try to run other Moose objects from your application. It -will try to invoke C, C or C method on the. +will try to invoke C, and C method on the. =cut -sub execute { qw/data markup/ } +sub runnable { qw/data markup/ } has 'class' => ( is => 'rw', @@ -37,6 +37,8 @@ my $class = $self->class; + $self->load_class( $class ); + my @required = grep { defined $_ && $_->can('name') && !defined( $self->params->{ $_->name } ) @@ -50,7 +52,7 @@ my $html; my $values = {}; - my $values = $self->config($class) if $self->can('config'); + $values = $self->config($class) if $self->can('config'); if ( @required ) { $html = qq|

Required params for $class

|;