Skip to content

Undefined method where for Array #96

@coneybeare

Description

@coneybeare

According to your docs and example page, this should work:

irb(main):006:0> user.recommended_thing.where('published = true')
NoMethodError: undefined method `where' for #<Array:0x00000005d45788>

Likes, recommendations, queries all work, but scoping the recommended_thing balks out on the call due to an array being returned instead. How can I debug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions