You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be more convenient for simple cases (like in the above example) to rely on a ::default_queryset macro allowing to define the default queryset in a very simple way:
classMyModel < Marten::Model
default_queryset { filter(foo:"bar") }
end
The text was updated successfully, but these errors were encountered:
Description
Right now the only way to customize the default queryset of a specific model is to override the
::default_queryset
class method as follows:It would be more convenient for simple cases (like in the above example) to rely on a
::default_queryset
macro allowing to define the default queryset in a very simple way:The text was updated successfully, but these errors were encountered: