Will flatten the capture args in uri_for
[catagits/Catalyst-Runtime.git] / t / lib / TestApp / Controller / Action / Auto / Default.pm
diff --git a/t/lib/TestApp/Controller/Action/Auto/Default.pm b/t/lib/TestApp/Controller/Action/Auto/Default.pm
new file mode 100644 (file)
index 0000000..7fa7eb4
--- /dev/null
@@ -0,0 +1,22 @@
+package TestApp::Controller::Action::Auto::Default;
+
+use strict;
+use base 'TestApp::Controller::Action';
+
+sub begin : Private { }
+
+sub auto : Private {
+    my ( $self, $c ) = @_;
+    $c->stash->{auto_ran}++;
+    return 1;
+}
+
+sub default : Private {
+    my ( $self, $c ) = @_;
+    $c->res->body( sprintf 'default (auto: %d)', $c->stash->{auto_ran} );
+}
+
+sub end : Private { }
+
+1;
+