> Bon, après comme j'ai dit plus haut il faudrais jeter un oeil au code
> source pour vérifier mes dire :-p. Dès que j'ai 5 minutes j'essaie de
> voir ça, mais ça peut peut-être te donenr une piste.
>

Bon en fait c'etais plus rapide que je ne pensais. L'erreur vient bien de là:

(pstore.rb ligne 349)
 # This method is just a wrapped around Marshal.dump.
 def dump(table)  # :nodoc:
   Marshal::dump(table)
 end

Marshal ne permet pas de sérialiser certain type d'objet:

"
Some objects cannot be dumped: if the objects to be dumped include
bindings, procedure or method objects, instances of class IO, or
singleton objects, a TypeError will be raised. If your class has
special serialization needs (for example, if you want to serialize in
some specific format), or if it contains objects that would otherwise
not be serializable, you can implement your own serialization strategy
by defining two methods, _dump and _load: The instance method _dump
should return a String object containing all the information necessary
to reconstitute objects of this class and all referenced objects up to
a maximum depth given as an integer parameter (a value of -1 implies
that you should disable depth checking). The class method _load should
take a String and return an object of this class.
"

Mais tu peux très bien te créer un sérialiser qui le permet. Ou bien,
si tu connais l'objet que tu souhaite sérialiser, peut-être, le
modifier pour ne pas utiliser Singleton ?


-- 
Yannick Francois
http://www.typouype.org
http://www.rubyfrance.org

--~--~---------~--~----~------------~-------~--~----~
Vous avez reçu ce message, car vous êtes abonné au groupe "Railsfrance" de 
Google Groups.
Pour transmettre des messages à ce groupe, envoyez un e-mail à l'adresse 
[email protected]
Pour résilier votre abonnement envoyez un e-mail à l'adresse [EMAIL PROTECTED]
-~----------~----~----~----~------~----~------~--~---

Répondre à