method

collect_deprecated_nested_reflections

rails latest stable - Class: ActiveRecord::Reflection::AssociationReflection

Method not available on this version

This method is only available on newer versions. The first available version (v8.1.1) is shown here.

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