method

execute_scope?

rails latest stable - Class: ActiveRecord::Scoping::Default::ClassMethods
execute_scope?(all_queries, default_scope_obj)
private

If all_queries is nil, only execute on select and insert queries.

If all_queries is true, check if the default_scope object has all_queries set, then execute on all queries; select, insert, update, delete, and reload.