Skip to content

Add default scopes for values if enabledΒ #11

@andy4thehuynh

Description

@andy4thehuynh

Something as easy as an options hash for time_for_a_boolean method.

scopes: enabled could generate:

scope :deleted, ->{ where.not(deleted_at: nil) }
scope :not_deleted, ->{ where.(deleted_at: nil) }

Would adding this benefit this project? Forked it and curious if this is worth putting a PR.

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