Flowdock
method

raise_on_type_mismatch

Importance_1
Ruby on Rails latest stable (v4.0.2) - 0 notes - Class: ActiveRecord::Associations::AssociationProxy

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v3.0.9) is shown here.

raise_on_type_mismatch(record) private

Raises ActiveRecord::AssociationTypeMismatch 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.