Dispatcher::get_action no longer takes $c as a useless arg
[catagits/Catalyst-Runtime.git] / lib / Catalyst / ActionContainer.pm
index f3ff514..6e01e23 100644 (file)
@@ -26,19 +26,20 @@ See L<Catalyst>.
 
 =over 4
 
-=item part
-
-=item actions
-
-=item new
+=item get_action
 
 =cut
 
-sub new {        # Dumbass constructor
-    my ( $class, $attrs ) = @_;
-    return bless { %{ $attrs || {} } }, $class;
+sub get_action {
+    my ( $self, $name ) = @_;
+    return $self->actions->{$name} if defined $self->actions->{$name};
+    return;
 }
 
+=item actions
+
+=item part
+
 =back
 
 =head1 AUTHOR