mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-23 06:16:50 +00:00
autoloading new flatten son adapter
This commit is contained in:
parent
1c3a180a20
commit
a0753cb0bc
@ -5,6 +5,7 @@ module ActiveModel
|
|||||||
class Adapter
|
class Adapter
|
||||||
extend ActiveSupport::Autoload
|
extend ActiveSupport::Autoload
|
||||||
autoload :Json
|
autoload :Json
|
||||||
|
autoload :FlattenJson
|
||||||
autoload :Null
|
autoload :Null
|
||||||
autoload :JsonApi
|
autoload :JsonApi
|
||||||
|
|
||||||
@ -82,7 +83,7 @@ module ActiveModel
|
|||||||
end
|
end
|
||||||
|
|
||||||
def root
|
def root
|
||||||
serializer.json_key
|
serializer.json_key.to_sym
|
||||||
end
|
end
|
||||||
|
|
||||||
def include_meta(json)
|
def include_meta(json)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user