method
set_inverse
rails latest stable - Class:
ActiveRecord::Associations::Preloader::Association
set_inverse(record)public
No documentation available.
# File activerecord/lib/active_record/associations/preloader/association.rb, line 171
def set_inverse(record)
if owners = owners_by_key[convert_key(record[association_key_name])]
# Processing only the first owner
# because the record is modified but not an owner
association = owners.first.association(reflection.name)
association.set_inverse_instance(record)
end
end