class ActiveRecord::Scoping::ScopeRegistry

def instance

def instance
  ActiveSupport::IsolatedExecutionState[:active_record_scope_registry] ||= new
end