method
default_scopes?
v7.1.3.2 -
Show latest stable
- Class:
ActiveRecord::Scoping::Default::ClassMethods
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.