mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-23 22:36:50 +00:00
11 lines
255 B
Ruby
11 lines
255 B
Ruby
module ActiveModelSerializers
|
|
module Adapter
|
|
class Json < Base
|
|
def serializable_hash(options = nil)
|
|
options ||= {}
|
|
{ root => Attributes.new(serializer, instance_options).serializable_hash(options) }
|
|
end
|
|
end
|
|
end
|
|
end
|