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