Skip to content

Define a scope on a relation #33

@Elyasin

Description

@Elyasin

Hi there, I was wondering whether and/or how it is possible to define a scope to include soft deleted objects in a relation. For example, inspired by ActiveRecord, I am looking for something like this:

has_and_belongs_to_many :users, -> { unscoped }

Would appreciate any help. Also, in case it is not possible or no viable workaround exists, I could maybe develope that feature myself. However, I will need guidance, I am not to proficient in Ruby yet.

Any helpers? Any takers?

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