How do I specify this in the YAML file? And then when I''m accessing
the object, how do I ensure that it''s an object of the type I want,
not just a string stored in the db?
Pat
On 12/12/05, Jeremy Kemper
<jeremy-w7CzD/W5Ocjk1uMJSBkQmQ@public.gmane.org>
wrote:> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Dec 12, 2005, at 6:46 AM, Pat Maddox wrote:
> > One of my fields holds binary data (a serialized object), and
I''d like
> > to be able to create fixtures that have this data. I can just use erb
> > to build the object, but I don''t know how to write the
fixture file
> > such that the object is serialized. Anyone know how to do this?
>
> YAML supports Base64-encoded binary values
> http://yaml.org/type/binary.html
>
> jeremy
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.2 (Darwin)
>
> iD8DBQFDnY5LAQHALep9HFYRAoA1AJ0QjxLKuxqvPBAnldlNam5jdKfy1QCcD5Rz
> vGIZ0S0QL/9bSFxSVtNPSb8> =4xtR
> -----END PGP SIGNATURE-----
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>