Skip to content

Present with a class that behaves like a hash causes early rendering at best and usually hard to debug errors #1023

Closed
@dblock

Description

@dblock

A Mongoid::Criteria, for example, responds to merge, so this was required to present it. This is because of https://github.com/intridea/grape/blob/master/lib/grape/dsl/inside_route.rb#L209, clearly we need a better solution here, maybe simple by registering representable classes?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions