Open vikas-wadhwa opened 7 years ago
Are there any implementations or tricks for finding all instances of the model with EITHER a certain or NO tags at all?
i.e. something like
User.tagged_with_or_none("awesome")
Returning users with a tag of "awesome" OR users who don't have any tags at all?
Hello @vikas-wadhwa Im looking exactly for this at the moment. Did you ever figure out a sane way to obtain this?
Just do the where query yourself, it seems like this isn't possible with tagged_with
tagged_with
Are there any implementations or tricks for finding all instances of the model with EITHER a certain or NO tags at all?
i.e. something like
User.tagged_with_or_none("awesome")
Returning users with a tag of "awesome" OR users who don't have any tags at all?