We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ece43f3 commit 2c9c36eCopy full SHA for 2c9c36e
lib/active_model/serializer/configuration.rb
@@ -6,7 +6,7 @@ module Configuration
6
7
included do |base|
8
base.config.array_serializer = ActiveModel::Serializer::ArraySerializer
9
- base.config.adapter = :json
+ base.config.adapter = :json_api
10
end
11
12
test/fixtures/poro.rb
@@ -1,3 +1,5 @@
1
+ActiveModel::Serializer.config.adapter = :json
2
+
3
class Model
4
def initialize(hash={})
5
@attributes = hash
@@ -64,7 +66,7 @@ class ProfilePreviewSerializer < ActiveModel::Serializer
64
66
Bio = Class.new(Model)
65
67
Blog = Class.new(Model)
68
Role = Class.new(Model)
-User = Class.new(Model)
69
+User = Class.new(Model)
70
Location = Class.new(Model)
71
Place = Class.new(Model)
72
0 commit comments