Skip to content

Commit a0753cb

Browse files
committed
autoloading new flatten son adapter
1 parent 1c3a180 commit a0753cb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/active_model/serializer/adapter.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ class Serializer
55
class Adapter
66
extend ActiveSupport::Autoload
77
autoload :Json
8+
autoload :FlattenJson
89
autoload :Null
910
autoload :JsonApi
1011

@@ -82,7 +83,7 @@ def meta_key
8283
end
8384

8485
def root
85-
serializer.json_key
86+
serializer.json_key.to_sym
8687
end
8788

8889
def include_meta(json)

0 commit comments

Comments
 (0)