fixed bug with under block leaking its setting to following actions
[catagits/CatalystX-Declare.git] / lib / CatalystX / Declare / Controller / RegisterActionRoles.pm
index 96b0016..e42a332 100644 (file)
@@ -13,11 +13,12 @@ role CatalystX::Declare::Controller::RegisterActionRoles
         for my $role (@action_roles) {
             my $fq_role = $self->_qualify_class_name(ActionRole => $role);
 
-            Class::MOP::load_class($role);
-            $role->meta->apply($action);
+            Class::MOP::load_class($fq_role);
+            $fq_role->meta->apply($action);
         }
 
         return $action;
     }
 }
 
+1;