diff options
Diffstat (limited to 'lib/ComponentUI/Controller/TestModel/Bar.pm')
-rw-r--r-- | lib/ComponentUI/Controller/TestModel/Bar.pm | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/ComponentUI/Controller/TestModel/Bar.pm b/lib/ComponentUI/Controller/TestModel/Bar.pm index 4b592c0..4859b7d 100644 --- a/lib/ComponentUI/Controller/TestModel/Bar.pm +++ b/lib/ComponentUI/Controller/TestModel/Bar.pm @@ -23,4 +23,13 @@ sub get_collection { return $collection->where({}, { prefetch => 'foo' }); } +sub create :Chained('base') { + my $self = shift; + my ($c) = @_; + my $action_vp = $self->next::method(@_); + my $self_uri = $c->uri_for($self->action_for('create')); + $action_vp->action($self_uri); + return $action_vp; +} + 1; |