Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 923 Bytes

README.md

File metadata and controls

26 lines (17 loc) · 923 Bytes

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

gem 'active_model_normalizr'

In a Rails initializer or somewhere similar:

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

Supported Dependency Versions

  • active_model_serializers ~> 0.10