jnunemaker/mongomapper — Issue #392: include_root_in_json
Author: acwright
Created: 2012-02-15 18:00:43+00:00
State: open

Could an option be added to MongoMapper::Plugins::Serialization to allow for setting include_root_in_json?

Currently this is hard coded to false in 'mongomapper / lib / mongo_mapper / plugins / serialization.rb':

included do
include ::ActiveModel::Serializers::JSON
include ::ActiveModel::Serializers::Xml
self.include_root_in_json = false
end