method

set_target_and_inverse

rails latest stable - Class: ActiveRecord::Associations::JoinDependency

Method deprecated or moved

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

set_target_and_inverse(join_part, association, record)
protected

No documentation available.

# File activerecord/lib/active_record/associations/join_dependency.rb, line 228
      def set_target_and_inverse(join_part, association, record)
        other = record.association(join_part.reflection.name)
        other.target = association
        other.set_inverse_instance(association)
      end