mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-28 03:06:28 +08:00
6 lines
200 B
Ruby
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
|