Skip to content

no implicit conversion of Symbol into Integer error using mongoid #589

Open
@dclausen

Description

@dclausen

Just upgraded to mongoid 5.0.2 and mongo 2.2.1 using latest release of jsonapi-resources 0.7 after which I began receiving a no implicit conversion of Symbol into Integer error.

This is due to lib/jsonapi/resource.rb:551 count(:all) is passing a Symbol to a delegated count method within mongo which expects a Hash.

It appears the bug to count() was caused by a change related to postgres support in d0e35b6

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions