method

default_scoped

default_scoped(scope = relation, all_queries: nil)
public

Returns a scope for the model with default scopes.