Skip to content

Commit

Permalink
Fix bugs introduced previously
Browse files Browse the repository at this point in the history
  • Loading branch information
bobtfish committed Jun 7, 2009
1 parent 84d8e4e commit 4ae24b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ sub _reflect_model_to_controller {
$strategy->new;

my $model_methods = $model->meta->get_method_map;
foreach my $method_name ( $strategy->get_reflected_method_list($app, $model->meta) ) {
foreach my $method_name ( $strategy->get_reflected_method_list($app, $model_name) ) {
# Note need to pass model name, as the method actually comes from
# the underlying model class, not the Catalyst shim class we autogenerated.
$controller_methods{$method_name} =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ use namespace::autoclean;
with 'CatalystX::DynamicComponent::ModelToControllerReflector::Strategy';

sub get_reflected_method_list {;
my ($self, $app, $model_meta) = @_;
my $model_name = $model_meta->name;
my ($self, $app, $model_name) = @_;
my $model_config = exists $app->config->{$model_name} ? $app->config->{$model_name} : {};
my $my_config = exists $app->config->{'CatalystX::DynamicComponent::ModelToControllerReflector'}
? $app->config->{'CatalystX::DynamicComponent::ModelToControllerReflector'} : {};
Expand Down

0 comments on commit 4ae24b1

Please sign in to comment.