Skip to content

Conversation

Spone
Copy link

@Spone Spone commented Oct 6, 2025

Close #11

@calebhearth
Copy link
Owner

I like it. Thanks. I'm curious whether we can chain scopes off of where.not? For example, does where.not.deleted work here?

I can check this myself later but if you're at a terminal and willing to try it out that may speed things up!

@Spone
Copy link
Author

Spone commented Oct 7, 2025

-          where.not("#{field}": nil)
+          where.not.send(field)

It works. Do you prefer this?

EDIT: or maybe you meant remove the not_#{attribute} scope altogether?

@calebhearth
Copy link
Owner

Yeah my thought is to not include the not_ scope, since it seems to be pretty easy to do in app code.

@Spone
Copy link
Author

Spone commented Oct 7, 2025

Fine. Let's rename the option scope (singular) then?

@Spone
Copy link
Author

Spone commented Oct 13, 2025

Hey @calebhearth let me know if there's anything else I can do to get this merged :)

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add default scopes for values if enabled

2 participants