method
set_target_and_inverse
rails latest stable - Class:
ActiveRecord::Associations::JoinDependency
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