writer(record)
Implements the writer method, e.g. foo.bar= for Foo.belongs_to :bar
# File activerecord/lib/active_record/associations/singular_association.rb, line 16 def writer(record) replace(record) end