Skip to content

Check that first parameter of filters by is either a symbol or string #7

@JureCindro

Description

@JureCindro

Since the method has only 1 required parameter one can easily forget to put the query attribute symbol/string before defining the filter class to be used for filtering, and the error that results from that is very obfuscated.

Add a check that raises an error if the parameter is not a symbol or string (or proc, to support dynamic attribute names)

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