Skip to content

0.10.stable / master is ignoring (key/root) option in has_many method  #882

Closed
@bernEsp

Description

@bernEsp

Example

has_many :charts, root: :rows,  serializer: ChartSerializer 

This produce a json with charts collection and ignore the custom name as follow

  { charts: [ ... ] }

When I'm expecting

   { rows: [ ... ] }

also fails using key option

  has_many :charts, key: :rows,  serializer: ChartSerializer

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions