=cut
-sub create :Chained('objects_no_id') :PathPart('create')
+sub create :Chained('objects_no_id') :PathPart('create') :Args(0)
{
my ($self, $c) = @_;
- $c->forward('update_or_create');
+ $self->update_or_create($c);
}
=method_protected list
=cut
-sub list :Chained('deserialize') :PathPart('list')
+sub list :Chained('deserialize') :PathPart('list') :Args(0)
{
my ($self, $c) = @_;
$self->next::method($c);
=cut
-sub item :Chained('object_with_id') :PathPart('')
+sub item :Chained('object_with_id') :PathPart('') :Args(0)
{
my ($self, $c) = @_;
$self->next::method($c);
=cut
-sub update :Chained('object_with_id') :PathPart('update')
+sub update :Chained('object_with_id') :PathPart('update') :Args(0)
{
my ($self, $c) = @_;
- $c->forward('update_or_create');
+ $self->update_or_create($c);
}
=method_protected delete
=cut
-sub delete :Chained('object_with_id') :PathPart('delete')
+sub delete :Chained('object_with_id') :PathPart('delete') :Args(0)
{
my ($self, $c) = @_;
$self->next::method($c);
=cut
-sub update_bulk :Chained('objects_no_id') :PathPart('update')
+sub update_bulk :Chained('objects_no_id') :PathPart('update') :Args(0)
{
my ($self, $c) = @_;
- $c->forward('update_or_create');
+ $self->update_or_create($c);
}
=method_protected delete_bulk
=cut
-sub delete_bulk :Chained('objects_no_id') :PathPart('delete')
+sub delete_bulk :Chained('objects_no_id') :PathPart('delete') :Args(0)
{
my ($self, $c) = @_;
$self->next::method($c);