Method: ActiveRecord::Associations::Association#target=

Defined in:
activerecord/lib/active_record/associations/association.rb

#target=(target) ⇒ Object

Sets the target of this association to \target, and the loaded flag to true.



102
103
104
105
# File 'activerecord/lib/active_record/associations/association.rb', line 102

def target=(target)
  @target = target
  loaded!
end