guard(reflection)
public

No documentation available.

# File activerecord/lib/active_record/associations/deprecation.rb, line 28
    def guard(reflection)
      report(reflection, context: yield) if reflection.deprecated?

      if reflection.through_reflection?
        reflection.deprecated_nested_reflections.each do |deprecated_nested_reflection|
          context = "referenced as nested association of the through #{reflection.active_record}##{reflection.name}"
          report(deprecated_nested_reflection, context: context)
        end
      end
    end