Skip Menu |

This queue is for tickets about the Catalyst-Action-REST CPAN distribution.

Report information
The Basics
Id: 57222
Status: open
Priority: 0/
Queue: Catalyst-Action-REST

People
Owner: EDENC [...] cpan.org
Requestors: icestar [...] inbox.ru
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.83
Fixed in: (no value)



Subject: Desirialize action is called as class method while serialize action is called as object method
Hello! I've found strange solution in your code. You call serialize action as object method ($self->_encoders->{$sclass} ||= $sclass->new;) while deserialize action you call as class method ($rc = $sclass->execute ( $controller, $c, $sarg );). This is not obviously and unuseful if I want to have some sort of cache in my own deserializer as attribute for example.