class ActiveRecord::Scoping::ScopeRegistry
def value_for(scope_type, model, skip_inherited_scope = false)
Experimental RBS support (using type sampling data from the type_fusion
project).
def value_for: (Hash scope_type, Class model, ?false skip_inherited_scope) -> nil
This signature was generated using 29 samples from 1 application.
def value_for(scope_type, model, skip_inherited_scope = false) return scope_type[model.name] if skip_inherited_scope klass = model base = model.base_class while klass <= base value = scope_type[klass.name] return value if value klass = klass.superclass end end