Skip to content

Suggestion: Add notes about .none() #337

@ydakuka

Description

@ydakuka

I suggest to add paragraph about using method .none().

Let's say we have the following samples:

User.where(id: nil)
User.where(id: 0)
User.where(id: [])
User.where(id: {})
User.limit(nil)
User.limit(0)

All these lines can be replaced with the code:

User.none

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