Method: ActiveRecord::Associations::Association#remove_inverse_instance
- Defined in:
- lib/active_record/associations/association.rb
#remove_inverse_instance(record) ⇒ Object
Remove the inverse association, if possible
130 131 132 133 134 |
# File 'lib/active_record/associations/association.rb', line 130 def remove_inverse_instance(record) if inverse = inverse_association_for(record) inverse.inversed_from(nil) end end |