Skip to content
This repository has been archived by the owner on Apr 17, 2018. It is now read-only.

Added serialization callbacks. #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Apr 29, 2011

  1. Added serialization callbacks.

    Sometimes it is not possible to add a method-hash to the DM Serializer,
    for instance when you want to serialize an array of Resources. To
    overcome these problems a #serialization_callback method can be defined
    on a Resource, which will be called by the serializer. This method
    should return a Hash (an exception will be raised otherwise) and the
    keys and values will be serialized as well.
    jwkoelewijn committed Apr 29, 2011
    Configuration menu
    Copy the full SHA
    d495913 View commit details
    Browse the repository at this point in the history