项目作者: codenoble

项目描述 :
An ActiveModelSerializers adapter for Normalizr-like JSON
高级语言: Ruby
项目地址: git://github.com/codenoble/active_model_normalizr.git
创建时间: 2017-02-01T02:00:05Z
项目社区:https://github.com/codenoble/active_model_normalizr

开源协议:MIT License

下载


Active Model Normalizr

Normalizr-like serialization for Active Model Serializers.

Active Model Normalizr provides a custom adapter for Active Model Serializers. So you can write your serializers like you always have and the output will be in a normalizr-like format that’s easy to use with Redux or Flux.

Installation

Add it to your Gemfile

  1. gem 'active_model_normalizr'

In a Rails initializer or somewhere similar:

  1. ActiveModelSerializers.config.adapter = ActiveModelSerializers::Adapter::Normalizr

Supported Dependency Versions

  • active_model_serializers ~> 0.10