method
collect_deprecated_nested_reflections
v8.1.1 -
Show latest stable
- Class:
ActiveRecord::Reflection::AssociationReflection
collect_deprecated_nested_reflections()private
No documentation available.
# File activerecord/lib/active_record/reflection.rb, line 1244
def collect_deprecated_nested_reflections
result = []
[through_reflection, source_reflection].each do |reflection|
result << reflection if reflection.deprecated?
# Both the through and the source reflections could be through
# themselves. Nesting can go an arbitrary number of levels down.
if reflection.through_reflection?
result.concat(reflection.deprecated_nested_reflections)
end
end
result
end