Add support for top level jsonapi member.

This commit is contained in:
Benjamin Fleischer
2015-10-01 13:22:28 -05:00
parent 1f08865a10
commit 9d7da8afc4
7 changed files with 157 additions and 6 deletions

View File

@@ -4,6 +4,8 @@ module ActiveModel
include ActiveSupport::Configurable
extend ActiveSupport::Concern
# Configuration options may also be set in
# Serializers and Adapters
included do |base|
base.config.array_serializer = ActiveModel::Serializer::ArraySerializer
base.config.adapter = :attributes