method

default_scopes?

default_scopes?(all_queries: false)
public

Checks if the model has any default scopes. If all_queries is set to true, the method will check if there are any default_scopes for the model where all_queries is true.