method

association_class

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

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v7.0.0) is shown here.

association_class()
public

No documentation available.

# File activerecord/lib/active_record/reflection.rb, line 725
      def association_class
        if polymorphic?
          Associations::BelongsToPolymorphicAssociation
        else
          Associations::BelongsToAssociation
        end
      end