Would it be possible to have a generic Serialization class that uses
delegates to perform Serialization to different formats? It seems the
reason why there is a different interface for xml as their is to json
is that rails implements an number of "to_json" methods to a whole lot
of existing classes
I have been thinking about this as well. First time I have added to a
discussion about core so throw the book at me but,
It seems somewhat limiting to make Serialisation generic for all
formats as there might be a use case where different attributes may
need to be serialised for different formats.
Same thing here - I tried to reuse the Serialization API but found it
way too complex and confusing, I think a rewrite would be best - still
not sure why AM doesn't use ActiveSupport's serialization, though.
That would make things much clearer.
Nick
On 21 Mrz., 15:12, Evgeniy Dolzhenko wrote:
>