Improve serializers:

* Many nested levels of associations can now insert
  their information alongside the original when
  embed :ids, :include => true is true
* Add support for passing options to serializers
* Fix Array serializers so they don't try to insert
  roots for each child object and so they can be
  provided a root.
* TODO: Array serializers should require a root
* TODO: Make merging associations at the root more
  efficient if possible
This commit is contained in:
Yehuda Katz
2011-12-20 00:03:29 -08:00
parent 8bdb7da272
commit df9ad0ef11
5 changed files with 184 additions and 23 deletions

View File

@@ -1,7 +1,5 @@
require "rubygems"
require "bundler"
Bundler.setup
require "bundler/setup"
require "active_model_serializers"
require "active_support/json"