Skip to content

undefined method `exclude?' for [JSON, [JSON]]:Array #2364

Closed
@ericproulx

Description

@ericproulx

While running benchmark/large_model locally, I stumbled upon this following error

 undefined method `exclude?' for [JSON, [JSON]]:Array

I ran the entire spec suite locally and I never faced the issue. After some investigation, I've figured that grape-entity is automatically loaded while running RSpec and it's requiring require 'active_support/core_ext/enumerable. Therefore, exclude? works on any enum. I'll create a PR to require it on our own.

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