Sha256: 13b145cd8a5004649b606c0b2985ca21248f987e5a493234fe258fc723ac1a13
Contents?: true
Size: 768 Bytes
Versions: 3
Compression:
Stored size: 768 Bytes
Contents
# vellam [![Build Status](https://secure.travis-ci.org/mkristian/babel.png)](http://travis-ci.org/mkristian/babel) # rails comes with `to_json` and `to_xml` on models and you can give them an option map to control how the whole object tree gets serialized. the first problem I had was that I needed serveral options map at different controllers/actions so I needed a place to store them. the model itself felt to be the wrong place. the next problem was that I could include the result of a given method with `:methods => ['age']` but only on the root level of the object tree. but if I wanted to `age` method to be part of the serialization somewhere deep inside the object tree, it is not possible. please have a look at **spec/filter_spec.rb** how to use it :)
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
ixtlan-babel-0.1.2 | README.md |
vellam-0.1.2 | README.md |
vellam-0.1.1 | README.md |