Method: ActiveRecord::Associations::CollectionAssociation#writer
- Defined in:
- lib/ocean-dynamo/active_record_stuff/collection_association.rb
#writer(records) ⇒ Object
Implements the writer method, e.g. foo.items= for Foo.has_many :items
41 42 43 |
# File 'lib/ocean-dynamo/active_record_stuff/collection_association.rb', line 41 def writer(records) replace(records) end |