Method: ActiveRecord::Associations::Association#set_inverse_instance
- Defined in:
- lib/active_record/associations/association.rb
#set_inverse_instance(record) ⇒ Object
Set the inverse association, if possible
115 116 117 118 119 120 |
# File 'lib/active_record/associations/association.rb', line 115 def set_inverse_instance(record) if inverse = inverse_association_for(record) inverse.inversed_from(owner) end record end |