class MR::FakeRecord::BelongsToAssociation
Public Instance Methods
write_attributes(associated_fake_record)
click to toggle source
Calls superclass method
MR::FakeRecord::OneToOneAssociation#write_attributes
# File lib/mr/fake_record/associations.rb, line 234 def write_attributes(associated_fake_record) super associated_id = associated_fake_record.id @owner.send("#{self.reflection.foreign_key}=", associated_id) end