scinote-web/config/initializers/active_model_serializer.rb
2018-08-24 15:37:23 +02:00

6 lines
200 B
Ruby

# frozen_string_literal: true
require 'active_model_serializers/register_jsonapi_renderer'
ActiveModelSerializers.config.adapter = :json_api
ActiveModelSerializers.config.key_transform = :unaltered