Flowdock
method

raise_on_type_mismatch

Importance_1
v2.2.1 - Show latest stable - 0 notes - Class: ActiveRecord::Associations::AssociationProxy
raise_on_type_mismatch(record) private

Raises <a href="/rails/ActiveRecord/AssociationTypeMismatch">ActiveRecord::AssociationTypeMismatch</a> unless record is of the kind of the class of the associated objects. Meant to be used as a sanity check when you are about to assign an associated record.

Show source
Register or log in to add new notes.