Skip to content

root attribute ignored #986

Closed
Closed
@mareczek

Description

@mareczek
render json: @current_user, root: 'resource', adapter: :json

gives output

{
  "user": {
    "id": 1,
    "name": "Rambo"
  }
}

when expected

{
  "resource": {
    "id": 1,
    "name": "Rambo"
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions