Method: ActiveRecord::Scoping::ScopeRegistry#value_for

Defined in:
lib/active_record/scoping.rb

#value_for(scope_type, variable_name) ⇒ Object

Obtains the value for a given scope_name and variable_name.



62
63
64
65
# File 'lib/active_record/scoping.rb', line 62

def value_for(scope_type, variable_name)
  raise_invalid_scope_type!(scope_type)
  @registry[scope_type][variable_name]
end