Skip to content

Predicate to search by length of string #1492

Description

@Tobias-Knudsen

I have a rails API using ransack to filter results. I want to be able to query by the length of the string eg. I want to find all records where attribute a's length is less than a desired value.

name_length_lteq: 4 => should return all records with the name of 4 or less characters.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions