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